Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 28, 2024
1 parent 61340a0 commit 3133ba4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Exec/gravity_tests/DustCollapse/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
#if AMREX_SPACEDIM == 3
const Real* dx = geomdata.CellSize();
Expand Down
4 changes: 2 additions & 2 deletions Exec/gravity_tests/hydrostatic_adjust/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
// Set the velocity to zero at the top physical boundary.

Expand Down
4 changes: 2 additions & 2 deletions Exec/hydro_tests/Noh/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
const Real pres_init = 1.0e-6_rt;
const Real rho_init = 1.0e0_rt;
Expand Down
4 changes: 2 additions & 2 deletions Exec/hydro_tests/double_mach_reflection/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
const int* domlo = geomdata.Domain().loVect();
const int* domhi = geomdata.Domain().hiVect();
Expand Down
4 changes: 2 additions & 2 deletions Exec/radiation_tests/Rad2Tshock/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
// The strategy here is to set Dirichlet condition for inflow and
// outflow boundaries, and let the Riemann solver sort out the
Expand Down
4 changes: 2 additions & 2 deletions Exec/science/Detonation/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time,
Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata)
const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata)
{
// Override the generic routine at the physical boundaries by
// setting the material to the ambient state. Note that we
Expand Down
4 changes: 2 additions & 2 deletions Source/problems/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
AMREX_GPU_HOST_DEVICE AMREX_INLINE
void problem_bc_fill(int i, int j, int k,
Array4<Real> const& state,
Real time, Array1D<BCRec, 0, NUM_STATE-1>& bcs,
GeometryData& geomdata) {
Real time, const Array1D<BCRec, 0, NUM_STATE-1>& bcs,
const GeometryData& geomdata) {

amrex::ignore_unused(i);
amrex::ignore_unused(j);
Expand Down
8 changes: 4 additions & 4 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra

auto U = s.array(mfi);
auto reactions = r.array(mfi);
auto & weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto & mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};
auto weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};

const auto dx = geom.CellSizeArray();
#ifdef MODEL_PARSER
Expand Down Expand Up @@ -534,8 +534,8 @@ Castro::react_state(Real time, Real dt)
#endif
auto I = SDC_react.array(mfi);
auto react_src = reactions.array(mfi);
auto & weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto & mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};
auto weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};

int lsdc_iteration = sdc_iteration;

Expand Down

0 comments on commit 3133ba4

Please sign in to comment.