Skip to content

Commit

Permalink
more fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 7, 2024
1 parent bb9877c commit 6f59152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra

const auto dx = geom.CellSizeArray();
#ifdef MODEL_PARSER
const auto problo = geom.ProbLoArray();
#endif
const auto geomdata = geom.data();
#endif

#if defined(AMREX_USE_GPU)
ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k)
Expand Down
9 changes: 1 addition & 8 deletions Source/scf/scf_relax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ Castro::do_hscf_solve()
[=] AMREX_GPU_DEVICE (int i, int j, int k) -> ReduceTuple
{
const auto *dx = geomdata.CellSize();
const auto *problo = geomdata.ProbLo();

// The below assumes we are rotating on the z-axis.

GpuArray<Real, 3>r;
GpuArray<Real, 3>r = {0.0};
position(i, j, k, geomdata, r);

// Do a trilinear interpolation to find the contribution from
Expand Down Expand Up @@ -369,7 +368,6 @@ Castro::do_hscf_solve()
[=] AMREX_GPU_DEVICE (int i, int j, int k) -> ReduceTuple
{
const auto *dx = geomdata.CellSize();
const auto *problo = geomdata.ProbLo();

// The below assumes we are rotating on the z-axis.

Expand Down Expand Up @@ -441,9 +439,6 @@ Castro::do_hscf_solve()
// enthalpy + gravitational potential + rotational potential = const
// We already have the constant, so our goal is to construct the enthalpy field.

const auto *dx = geomdata.CellSize();
const auto *problo = geomdata.ProbLo();

GpuArray<Real, 3> r = {0.0};
position(i, j, k, geomdata, r);

Expand Down Expand Up @@ -618,8 +613,6 @@ Castro::do_hscf_solve()
{
Real dM = 0.0, dK = 0.0, dU = 0.0, dE = 0.0;

const auto* problo = geomdata.ProbLo();

GpuArray<Real, 3> r = {0.0};
position(i, j, k, geomdata, r);

Expand Down

0 comments on commit 6f59152

Please sign in to comment.