Skip to content

Commit

Permalink
ref_ratios.size() -> max_level
Browse files Browse the repository at this point in the history
Address a breaking change in AMReX.
  • Loading branch information
ax3l committed Aug 14, 2024
1 parent 4254501 commit 14b605c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Parallelization/GuardCellManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ guardCellManager::Init (
// the fine grid by a number of cells equal to the ref_ratio in the moving
// window direction.
if (do_moving_window) {
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(ref_ratios.size() <= 1,
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(max_level <= 1,
"The number of grow cells for the moving window currently assumes 2 levels max.");
const auto nlevs = static_cast<int>(ref_ratios.size()+1);
const auto nlevs = static_cast<int>(max_level+1);
const int max_r = (nlevs > 1) ? ref_ratios[0][moving_window_dir] : 2;

ngx = std::max(ngx,max_r);
Expand Down

0 comments on commit 14b605c

Please sign in to comment.