Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Apr 26, 2024
1 parent 654b2d7 commit 55d3800
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,12 @@ Castro::read_params ()
if (ppr.countval("max_level") > 0) {
int max_level;
ppr.get("max_level", max_level);
BL_ASSERT(max_level <= MAX_LEV);
info.SetMaxLevel(max_level);
} else {
// the default max_level of AMRErrorTagInfo is 1000, but make sure
// that it is reasonable for Castro
info.SetMaxLevel(MAX_LEV);
}
if (ppr.countval("volume_weighting") > 0) {
int volume_weighting;
Expand All @@ -604,10 +609,6 @@ Castro::read_params ()
info.SetDerefine(derefine);
}

// the default max_level of AMRErrorTagInfo is 1000, but make sure
// that it is reasonable for Castro
BL_ASSERT(info.m_max_level < MAX_LEV);

if (ppr.countval("value_greater")) {
Vector<Real> value;
ppr.getarr("value_greater", value, 0, ppr.countval("value_greater"));
Expand Down

0 comments on commit 55d3800

Please sign in to comment.