Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 14, 2024
1 parent a21a7e7 commit a483d44
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Source/hydro/Castro_ctu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Castro::ctu_ppm_states(const Box& bx, const Box& vbx,
#endif
#if AMREX_SPACEDIM < 3
Array4<Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
Array4<Real const> const& dlogaY,
#endif
const Real dt) {
Expand Down Expand Up @@ -175,6 +177,8 @@ Castro::ctu_ppm_rad_states(const Box& bx, const Box& vbx,
#endif
#if AMREX_SPACEDIM < 3
Array4<Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
Array4<Real const> const& dlogaY,
#endif
const Real dt) {
Expand Down Expand Up @@ -246,6 +250,8 @@ Castro::ctu_plm_states(const Box& bx, const Box& vbx,
#endif
#if AMREX_SPACEDIM < 3
Array4<Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
Array4<Real const> const& dlogaY,
#endif
const Real dt) {
Expand Down
10 changes: 8 additions & 2 deletions Source/hydro/Castro_hydro.H
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@
#endif
#if AMREX_SPACEDIM < 3
amrex::Array4<amrex::Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
amrex::Array4<amrex::Real const> const& dlogaY,
#endif
const amrex::Real dt);
Expand Down Expand Up @@ -283,6 +285,8 @@
#endif
#if AMREX_SPACEDIM < 3
amrex::Array4<amrex::Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
amrex::Array4<amrex::Real const> const& dlogaY,
#endif
const amrex::Real dt);
Expand Down Expand Up @@ -326,8 +330,10 @@
amrex::Array4<amrex::Real> const& qzp,
#endif
#if AMREX_SPACEDIM < 3
amrex::Array4<amrex::Real const> const& dlogaX,
amrex::Array4<amrex::Real const> const& dlogaY,
amrex::Array4<amrex::Real const> const& dlogaX,
#endif
#if AMREX_SPACEDIM == 2
amrex::Array4<amrex::Real const> const& dlogaY,
#endif
const amrex::Real dt);
#endif
Expand Down

0 comments on commit a483d44

Please sign in to comment.