Skip to content

Commit

Permalink
Add the viscous terms for open bc boundaries (#1615)
Browse files Browse the repository at this point in the history
Co-authored-by: Mahesh Natarajan <[email protected]>
Co-authored-by: Ann Almgren <[email protected]>
  • Loading branch information
3 people authored May 14, 2024
1 parent 8f95c95 commit e8d3136
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/TimeIntegration/ERF_slow_rhs_pre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,6 @@ void erf_slow_rhs_pre (int level, int finest_level,
Box tby = mfi.nodaltilebox(1);
Box tbz = mfi.nodaltilebox(2);

// If we are imposing open bc's then don't add rhs terms at the boundary locations
if ( xlo_open && (tbx.smallEnd(0) == domain.smallEnd(0)) ) {tbx.growLo(0,-1);}
if ( xhi_open && (tbx.bigEnd(0) == domain.bigEnd(0)+1) ) {tbx.growHi(0,-1);}
if ( ylo_open && (tby.smallEnd(1) == domain.smallEnd(1)) ) {tby.growLo(1,-1);}
if ( yhi_open && (tby.bigEnd(1) == domain.bigEnd(1)+1) ) {tby.growHi(1,-1);}

// We don't compute a source term for z-momentum on the bottom or top boundary
tbz.growLo(2,-1);
tbz.growHi(2,-1);
Expand Down

0 comments on commit e8d3136

Please sign in to comment.