Skip to content

Commit

Permalink
use amrex::ignore_unused rather than [[maybe_unused]]
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Sep 10, 2024
1 parent 4b26ab1 commit 6b57a14
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions Source/sources/Castro_geom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ using namespace amrex;
///

void
Castro::construct_old_geom_source([[maybe_unused]]MultiFab& source,
[[maybe_unused]]MultiFab& state_in,
[[maybe_unused]]Real time,
[[maybe_unused]]Real dt)
Castro::construct_old_geom_source(MultiFab& source, MultiFab& state_in, Real time, Real dt)
{

amrex::ignore_unused(source);
amrex::ignore_unused(state_in);
amrex::ignore_unused(time);
amrex::ignore_unused(dt);

if (geom.Coord() == 0) {
return;
}
Expand Down Expand Up @@ -63,13 +65,16 @@ Castro::construct_old_geom_source([[maybe_unused]]MultiFab& source,


void
Castro::construct_new_geom_source([[maybe_unused]]MultiFab& source,
[[maybe_unused]]MultiFab& state_old,
[[maybe_unused]]MultiFab& state_new,
[[maybe_unused]]Real time,
[[maybe_unused]]Real dt)
Castro::construct_new_geom_source(MultiFab& source, MultiFab& state_old,
MultiFab& state_new, Real time, Real dt)
{

amrex::ignore_unused(source);
amrex::ignore_unused(state_old);
amrex::ignore_unused(state_new);
amrex::ignore_unused(time);
amrex::ignore_unused(dt);

if (geom.Coord() == 0) {
return;
}
Expand Down Expand Up @@ -134,14 +139,16 @@ Castro::construct_new_geom_source([[maybe_unused]]MultiFab& source,


void
Castro::fill_RZ_geom_source ([[maybe_unused]] Real time, [[maybe_unused]] Real dt,
MultiFab& cons_state, MultiFab& geom_src)
Castro::fill_RZ_geom_source (Real time, Real dt, MultiFab& cons_state, MultiFab& geom_src)
{

// Compute the geometric source for axisymmetric coordinates (R-Z)
// resulting from taking the divergence of (rho U U) in cylindrical
// coordinates. See the paper by Bernard-Champmartin

amrex::ignore_unused(time);
amrex::ignore_unused(dt);

auto dx = geom.CellSizeArray();
auto prob_lo = geom.ProbLoArray();

Expand Down Expand Up @@ -176,13 +183,15 @@ Castro::fill_RZ_geom_source ([[maybe_unused]] Real time, [[maybe_unused]] Real d


void
Castro::fill_RTheta_geom_source ([[maybe_unused]] Real time, [[maybe_unused]] Real dt,
MultiFab& cons_state, MultiFab& geom_src)
Castro::fill_RTheta_geom_source (Real time, Real dt, MultiFab& cons_state, MultiFab& geom_src)
{

// Compute the geometric source resulting from taking the divergence of (rho U U)
// in Spherical 2D (R-Theta) coordinate.

amrex::ignore_unused(time);
amrex::ignore_unused(dt);

auto dx = geom.CellSizeArray();
auto prob_lo = geom.ProbLoArray();

Expand Down

0 comments on commit 6b57a14

Please sign in to comment.