Skip to content
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

Merged
merged 6 commits into from
Aug 7, 2023

Conversation

nataraj2
Copy link
Contributor

@nataraj2 nataraj2 commented Aug 7, 2023

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:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

WeiqunZhang
WeiqunZhang previously approved these changes Aug 7, 2023
Comment on lines 904 to 907
ifeq ($(USE_MOVING_EB),TRUE)
DEFINES += -DAMREX_USE_MOVING_EB
endif

Copy link
Member

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.

@@ -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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WeiqunZhang WeiqunZhang self-requested a review August 7, 2023 15:34
@WeiqunZhang WeiqunZhang dismissed their stale review August 7, 2023 15:53

Wanted to click on request changes

@WeiqunZhang WeiqunZhang merged commit fdce60c into AMReX-Codes:development Aug 7, 2023
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants