Skip to content

Commit

Permalink
AmrCore::regrid: return if the base level is already the max level.
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Nov 1, 2019
1 parent 6791f57 commit c08fd84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/AmrCore/AMReX_AmrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ AmrCore::InitFromScratch (Real time)
void
AmrCore::regrid (int lbase, Real time, bool)
{
if (lbase >= max_level) return;

int new_finest;
Vector<BoxArray> new_grids(finest_level+2);
MakeNewGrids(lbase, time, new_finest, new_grids);
Expand Down

0 comments on commit c08fd84

Please sign in to comment.