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

MacProjector: allow for re-use of the object and enhance multi-level algorithm. #1225

Merged
merged 2 commits into from
Aug 7, 2020

Conversation

mic84
Copy link
Contributor

@mic84 mic84 commented Aug 3, 2020

Summary

Originally the MacProjector object was not designed to be re-used for multiple solves, i.e. it had to be created anew for each solve. Furthermore, it was up to the user to average down velocities before and after the projection for multi-level solves.

This bug enhance the behavior of the MacProjector by

  1. taking care of the averaging-down of the velocities internally, and
  2. allowing the same object to be re-used for multiple solves as long as the system coefficients don't change

Additional background

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
  • are described in the proposed changes to the AMReX documentation, if appropriate

@mic84 mic84 requested a review from asalmgren August 3, 2020 23:47
@mic84 mic84 changed the title [WIP] MacProjector: fix multi-level algorithm. MacProjector: enhance user-interface and multi-level algorithm. Aug 7, 2020
@mic84 mic84 changed the title MacProjector: enhance user-interface and multi-level algorithm. MacProjector: allow for re-use of the object and enhance multi-level algorithm. Aug 7, 2020
@mic84 mic84 marked this pull request as ready for review August 7, 2020 18:02
@mic84 mic84 merged commit 6de33d5 into AMReX-Codes:development Aug 7, 2020
@mic84 mic84 deleted the mr/mac-projection branch August 7, 2020 19:25
dwillcox pushed a commit to dwillcox/amrex that referenced this pull request Oct 3, 2020
…algorithm. (AMReX-Codes#1225)

* MacProjector: build RHS each time project() is called

* MacProjector: average down velocities before and after projection
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