Skip to content

Commit 49f904f

Browse files
authored
fix for wrfbdy cases (erf-model#985)
1 parent 54866ac commit 49f904f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/TimeIntegration/ERF_slow_rhs_pre.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ void erf_slow_rhs_pre (int /*level*/, int nrk,
123123
// Construct intersection of current tilebox and valid region for updating
124124
Box bx = mfi.tilebox() & valid_bx;
125125

126-
Box tbx = mfi.nodaltilebox(0);
127-
Box tby = mfi.nodaltilebox(1);
128-
Box tbz = mfi.nodaltilebox(2);
126+
Box tbx = mfi.nodaltilebox(0) & surroundingNodes(valid_bx,0);
127+
Box tby = mfi.nodaltilebox(1) & surroundingNodes(valid_bx,1);
128+
Box tbz = mfi.nodaltilebox(2) & surroundingNodes(valid_bx,2);
129129

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

0 commit comments

Comments
 (0)