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

fix reflux when timestep retries are used #150

Merged
merged 6 commits into from
Oct 28, 2022

Conversation

BenWibking
Copy link
Collaborator

The previous implementation didn't remove the contribution to the flux registers when the hydro advance failed and was retried with a smaller timestep. This saves the fluxes produced by the hydro advance until it has succeeded and then adds them to the flux register.

Unfortunately, this requires an additional set of flux MultiFabs to accumulate the flux from each RK stage for each retry substep. Future enhancements to amrex::YAFluxRegister may allow the flux register state to be copied and restored as needed.

@BenWibking
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@BenWibking BenWibking merged commit 4586724 into development Oct 28, 2022
@BenWibking BenWibking deleted the fix-fluxregister-retries branch October 28, 2022 14:08
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.

1 participant