Skip to content

Commit

Permalink
add necessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
hklion committed Oct 18, 2024
1 parent dcb0ca8 commit f838435
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 f838435

Please sign in to comment.