Skip to content

Commit

Permalink
Merge pull request #275 from hklion/adjust_bounds_ncbounds
Browse files Browse the repository at this point in the history
add necessary braces
  • Loading branch information
hklion authored Oct 18, 2024
2 parents 2c9b320 + f838435 commit 0f9f83c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Initialization/REMORA_init_bcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,17 @@ void REMORA::init_bcs ()
if (side == Orientation::low) {
domain_bcs_type[BCVars::ubar_bc+i].setLo(dir, REMORABCType::reflect_even);
domain_bcs_type[BCVars::u2d_simple_bc+i].setLo(dir, REMORABCType::reflect_even);
if (i==1 and dir!=2)
if (i==1 and dir!=2) {
domain_bcs_type[BCVars::ubar_bc+dir].setLo(dir, REMORABCType::reflect_odd);
domain_bcs_type[BCVars::u2d_simple_bc+dir].setLo(dir, REMORABCType::reflect_odd);
}
} else {
domain_bcs_type[BCVars::ubar_bc+i].setHi(dir, REMORABCType::reflect_even);
domain_bcs_type[BCVars::u2d_simple_bc+i].setHi(dir, REMORABCType::reflect_even);
if (i==1 and dir!=2)
if (i==1 and dir!=2) {
domain_bcs_type[BCVars::ubar_bc+dir].setHi(dir, REMORABCType::reflect_odd);
domain_bcs_type[BCVars::u2d_simple_bc+dir].setHi(dir, REMORABCType::reflect_odd);
}
}
}
else if (bct == REMORA_BC::outflow)
Expand Down

0 comments on commit 0f9f83c

Please sign in to comment.