Skip to content

Commit

Permalink
terrain_fab should be computed at level 'lev' not 0 (erf-model#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Feb 6, 2025
1 parent 007c019 commit 508cffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ERF_MakeNewArrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ ERF::init_zphys (int lev, Real time)
}

int ngrow = ComputeGhostCells(solverChoice.advChoice, solverChoice.use_num_diff) + 2;
Box bx(surroundingNodes(Geom(0).Domain())); bx.grow(ngrow);
Box bx(surroundingNodes(Geom(lev).Domain())); bx.grow(ngrow);
FArrayBox terrain_fab(makeSlab(bx,2,0),1);

//
Expand Down

0 comments on commit 508cffe

Please sign in to comment.