Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 18, 2024
1 parent e8dc1f3 commit 337c82f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Source/PeleLMeX_DeriveFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ pelelmex_derdmap(
//
// Derive manifold output quantities
//
#ifdef USE_MANIFOLD_EOS
void
pelelmex_dermaniout(
PeleLM* a_pelelm,
Expand All @@ -1485,6 +1486,7 @@ pelelmex_dermaniout(
a_pelelm->eos_parms.host_only_parm().manfunc_par->device_parm();
int nmanivar = h_manf_data.Nvar;

amrex::ignore_unused(ncomp);
AMREX_ASSERT(derfab.box().contains(bx));
AMREX_ASSERT(statefab.box().contains(bx));
AMREX_ASSERT(derfab.nComp() >= dcomp + ncomp);
Expand All @@ -1506,3 +1508,4 @@ pelelmex_dermaniout(
manfunc.get_func()->get_all_values(maniparm, der.ptr(i, j, k));
});
}
#endif
13 changes: 7 additions & 6 deletions Source/PeleLMeX_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ getTransportCoeff<pele::physics::eos::Manifold>(
amrex::Array4<const amrex::Real> const& rhoY,
amrex::Array4<const amrex::Real> const& T,
amrex::Array4<amrex::Real> const& rhoDi,
amrex::Array4<amrex::Real> const& rhotheta,
amrex::Array4<amrex::Real> const& /*rhotheta*/,
amrex::Array4<amrex::Real> const& lambda,
amrex::Array4<amrex::Real> const& mu,
pele::physics::transport::TransParm<
Expand Down Expand Up @@ -319,13 +319,13 @@ compute_divu<pele::physics::eos::Manifold>(
int j,
int k,
amrex::Array4<const amrex::Real> const& rhoY,
amrex::Array4<const amrex::Real> const& T,
amrex::Array4<const amrex::Real> const& /*T*/,
amrex::Array4<const amrex::Real> const& specDiff,
amrex::Array4<const amrex::Real> const& tempDiff,
amrex::Array4<const amrex::Real> const& specEnthDiff,
amrex::Array4<const amrex::Real> const& /*tempDiff*/,
amrex::Array4<const amrex::Real> const& /*specEnthDiff*/,
amrex::Array4<const amrex::Real> const& rhoYdot,
amrex::Array4<const amrex::Real> const& extRhoY,
amrex::Array4<const amrex::Real> const& extRhoH,
amrex::Array4<const amrex::Real> const& /*extRhoH*&/,
amrex::Array4<amrex::Real> const& divu,
int do_react,
pele::physics::eos::EosParm<pele::physics::PhysicsType::eos_type> const*
Expand Down Expand Up @@ -735,7 +735,8 @@ makeVelForce(
const amrex::Real& rho_incomp,
int pseudo_gravity,
int pseudo_gravity_dir,
const amrex::Real& /*time*/,
const amrex::Real& /*time*/
,
amrex::GpuArray<amrex::Real, AMREX_SPACEDIM> const gravity,
amrex::GpuArray<amrex::Real, AMREX_SPACEDIM> const gp0,
const amrex::Real& dV_control,
Expand Down

0 comments on commit 337c82f

Please sign in to comment.