Skip to content

Commit

Permalink
the BC logic in Detonation was checking on REFLECT_ODD twice (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 22, 2024
1 parent adf6fba commit 29c5f4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Exec/science/Detonation/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -70,32 +70,32 @@ void problem_bc_fill(int i, int j, int k,
}
else if (i > domhi[0] && (bcs(0).hi(0) != REFLECT_ODD &&
bcs(0).hi(0) != INT_DIR &&
bcs(0).hi(0) != REFLECT_ODD)) {
bcs(0).hi(0) != REFLECT_EVEN)) {
do_ambient_fill = true;
}

if (AMREX_SPACEDIM >= 2) {
if (j < domlo[1] && (bcs(0).lo(1) != REFLECT_ODD &&
bcs(0).lo(1) != INT_DIR &&
bcs(0).lo(1) != REFLECT_ODD)) {
bcs(0).lo(1) != REFLECT_EVEN)) {
do_ambient_fill = true;
}
else if (j > domhi[1] && (bcs(0).hi(1) != REFLECT_ODD &&
bcs(0).hi(1) != INT_DIR &&
bcs(0).hi(1) != REFLECT_ODD)) {
bcs(0).hi(1) != REFLECT_EVEN)) {
do_ambient_fill = true;
}
}

if (AMREX_SPACEDIM == 3) {
if (k < domlo[2] && (bcs(0).lo(2) != REFLECT_ODD &&
bcs(0).lo(2) != INT_DIR &&
bcs(0).lo(2) != REFLECT_ODD)) {
bcs(0).lo(2) != REFLECT_EVEN)) {
do_ambient_fill = true;
}
else if (k > domhi[2] && (bcs(0).hi(2) != REFLECT_ODD &&
bcs(0).hi(2) != INT_DIR &&
bcs(0).hi(2) != REFLECT_ODD)) {
bcs(0).hi(2) != REFLECT_EVEN)) {
do_ambient_fill = true;
}
}
Expand Down

0 comments on commit 29c5f4d

Please sign in to comment.