-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to force regrid level zero #3484
Conversation
Tools/GNUMake/Make.defs
Outdated
ifeq ($(USE_MOVING_EB),TRUE) | ||
DEFINES += -DAMREX_USE_MOVING_EB | ||
endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can probably be set in the user's code.
Src/Amr/AMReX_Amr.cpp
Outdated
@@ -1930,6 +1933,8 @@ Amr::timeStep (int level, | |||
// Update so that by default, we don't force a post-step regrid. | |||
amr_level[level]->setPostStepRegrid(0); | |||
|
|||
if(max_level==0 && force_regrid_level_zero)regrid_level_0_on_restart(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are about to enforce https://clang.llvm.org/extra/clang-tidy/checks/readability/braces-around-statements.html
Summary
This PR gives the user an option to force regrid level zero.
Additional background
This is needed for moving EB cases.
Checklist
The proposed changes: