Skip to content

Commit

Permalink
fix a shadowing on verbose (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 29, 2024
1 parent 794de4a commit 01e5fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/hydro/Castro_hydro.H
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@

void do_enforce_minimum_density(const amrex::Box& bx,
amrex::Array4<amrex::Real> const& state_arr,
const int verbose);
const int verbose_warnings);

#ifdef HYBRID_MOMENTUM

Expand Down
8 changes: 4 additions & 4 deletions Source/hydro/advection_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,13 @@ Castro::limit_hydro_fluxes_on_small_dens(const Box& bx,
void // NOLINTNEXTLINE(readability-convert-member-functions-to-static)
Castro::do_enforce_minimum_density(const Box& bx,
Array4<Real> const& state_arr,
const int verbose) {
const int verbose_warnings) {

#ifdef HYBRID_MOMENTUM
GeometryData geomdata = geom.data();
#endif

amrex::ignore_unused(verbose);
amrex::ignore_unused(verbose_warnings);

amrex::ParallelFor(bx,
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
Expand All @@ -603,8 +603,8 @@ Castro::do_enforce_minimum_density(const Box& bx,
if (state_arr(i,j,k,URHO) < small_dens) {

#ifndef AMREX_USE_GPU
if (verbose > 1 ||
(verbose > 0 && state_arr(i,j,k,URHO) > castro::retry_small_density_cutoff)) {
if (verbose_warnings > 1 ||
(verbose_warnings > 0 && state_arr(i,j,k,URHO) > castro::retry_small_density_cutoff)) {
std::cout << " " << std::endl;
if (state_arr(i,j,k,URHO) < 0.0_rt) {
std::cout << ">>> RESETTING NEG. DENSITY AT " << i << ", " << j << ", " << k << std::endl;
Expand Down

0 comments on commit 01e5fa8

Please sign in to comment.