Skip to content

Commit

Permalink
change MaxCnt from 4 to max(4,max_level+1) for how many iterations we… (
Browse files Browse the repository at this point in the history
AMReX-Codes#3588)

… allow in creation of the initial grid hierarchy
  • Loading branch information
asalmgren authored and guj committed Dec 13, 2023
1 parent abf6f22 commit 087a30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Amr/AMReX_Amr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3085,7 +3085,7 @@ Amr::bldFineLevels (Real strt_time)
{
bool grids_the_same;

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

int count = 0;

Expand Down

0 comments on commit 087a30b

Please sign in to comment.