Skip to content

Commit 01b30b7

Browse files
authored
change MaxCnt from 4 to max(4,max_level+1) for how many iterations we… (#3588)
… allow in creation of the initial grid hierarchy
1 parent d39abbc commit 01b30b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Amr/AMReX_Amr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3085,7 +3085,7 @@ Amr::bldFineLevels (Real strt_time)
30853085
{
30863086
bool grids_the_same;
30873087

3088-
const int MaxCnt = 4;
3088+
const int MaxCnt = std::max(4, max_level+1);
30893089

30903090
int count = 0;
30913091

0 commit comments

Comments
 (0)