Skip to content

Commit

Permalink
Leveraging ignore_unused in probtype 531 & 532
Browse files Browse the repository at this point in the history
  • Loading branch information
siddanib committed Jul 25, 2024
1 parent c18b586 commit 3664928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/prob/prob_init_fluid_usr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ void incflo::column_collapse_granular (Box const& vbx, Box const& nbx,
GpuArray<Real, AMREX_SPACEDIM> const& problo,
GpuArray<Real, AMREX_SPACEDIM> const& probhi)
{
amrex::ignore_unused<Box>(nbx);
amrex::ignore_unused<Array4<Real>>(pressure);
// Ensure it is set to two_fluid
if (!m_two_fluid) amrex::Abort("probtype 531 involves two fluids");

Expand Down Expand Up @@ -105,6 +107,8 @@ void incflo::smooth_column_collapse_granular (Box const& vbx, Box const& nbx,
GpuArray<Real, AMREX_SPACEDIM> const& probhi,
Real smoothing_factor)
{
amrex::ignore_unused<Box>(nbx);
amrex::ignore_unused<Array4<Real>>(pressure);
// Ensure it is set to two_fluid
if (!m_two_fluid) amrex::Abort("probtype 532 involves two fluids");

Expand Down

0 comments on commit 3664928

Please sign in to comment.