Skip to content

Commit

Permalink
fix a check on whether the outer boundary is open in gravity (#2833)
Browse files Browse the repository at this point in the history
we were testing physbc_lo[dim] != amrex::PhysBCType::interior
when it should be physbc_hi[dim]
  • Loading branch information
zingale authored Apr 26, 2024
1 parent fa38009 commit 9338c82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3551,12 +3551,14 @@ Castro::apply_tagging_restrictions(TagBoxArray& tags, [[maybe_unused]] Real time

int boundary_buf = n_error_buf[dim] + blocking_factor[dim] / ref_ratio[dim];

if ((physbc_lo[dim] != amrex::PhysBCType::symmetry && physbc_lo[dim] != amrex::PhysBCType::interior) &&
if ((physbc_lo[dim] != amrex::PhysBCType::symmetry &&
physbc_lo[dim] != amrex::PhysBCType::interior) &&
(idx[dim] <= domlo[dim] + boundary_buf)) {
outer_boundary_test[dim] = true;
}

if ((physbc_hi[dim] != amrex::PhysBCType::symmetry && physbc_lo[dim] != amrex::PhysBCType::interior) &&
if ((physbc_hi[dim] != amrex::PhysBCType::symmetry &&
physbc_hi[dim] != amrex::PhysBCType::interior) &&
(idx[dim] >= domhi[dim] - boundary_buf)) {
outer_boundary_test[dim] = true;
}
Expand Down

0 comments on commit 9338c82

Please sign in to comment.