Skip to content

Commit

Permalink
EB: don't abort for no-op case in unsupported addFineLevels functions
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 1, 2024
1 parent ebd9a11 commit 2ce1e03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Src/EB/AMReX_EB2_IndexSpace_STL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ IndexSpaceSTL::getGeometry (const Box& dom) const
}

void
IndexSpaceSTL::addFineLevels (int /*num_new_fine_levels*/)
IndexSpaceSTL::addFineLevels (int num_new_fine_levels)
{
amrex::Abort("IndexSpaceSTL::addFineLevels: todo");
// This function is a no op if not adding levels, otherwise TODO
if (num_new_fine_levels > 0) {
amrex::Abort("IndexSpaceSTL::addFineLevels: todo");
}
}

void
Expand Down
7 changes: 5 additions & 2 deletions Src/EB/AMReX_EB2_IndexSpace_chkpt_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ IndexSpaceChkptFile::getGeometry (const Box& dom) const
}

void
IndexSpaceChkptFile::addFineLevels (int /*num_new_fine_levels*/)
IndexSpaceChkptFile::addFineLevels (int num_new_fine_levels)
{
amrex::Abort("IndexSpaceChkptFile::addFineLevels: not supported");
// This function is a no op if not adding levels, otherwise TODO
if (num_new_fine_levels > 0) {
amrex::Abort("IndexSpaceChkptFile::addFineLevels: not supported");
}
}

void
Expand Down

0 comments on commit 2ce1e03

Please sign in to comment.