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

Generalized multi-level relaxation #1233

Merged
merged 34 commits into from
Oct 4, 2023

Conversation

AMLattanzi
Copy link
Collaborator

  1. Building the mask array in ERFFillPatcher.cpp is a bit off a mess. The code works but it is hard to follow and not perfectly general.

  2. The tradeoff between space and time interpolation has not been assessed. We currently do both for all the fill calls; this should be modified (currently inefficient).

  3. Grids to evolve has been removed. With the fast integrator, we will compute an update on all interior cells; but the set region is overwritten because we call apply_bcs() at the end of a fast iteration.

@AMLattanzi AMLattanzi requested a review from asalmgren September 6, 2023 23:37
@AMLattanzi AMLattanzi marked this pull request as ready for review September 22, 2023 18:04
@AMLattanzi
Copy link
Collaborator Author

@WeiqunZhang can you focus on the ERF_FillPatcher.cpp/.H files? The new code for generating the mask array for set and relax regions is here.

Source/BoundaryConditions/ERF_FillPatcher.H Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.H Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.cpp Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.cpp Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.H Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.cpp Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.cpp Outdated Show resolved Hide resolved
Source/BoundaryConditions/ERF_FillPatcher.cpp Outdated Show resolved Hide resolved
com_ba.define(com_bl);
com_ba.complementIn(com_bl, fba_bnd);

// Fill mask based upon the com_bl BoxList
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a more efficient way to do this. Since this pattern of setVal in a BoxArray's region can be useful in other places, I will add a function to amrex. After that is merged, we can do a new PR to use it.

@AMLattanzi AMLattanzi merged commit f0d8d23 into erf-model:development Oct 4, 2023
12 checks passed
@AMLattanzi AMLattanzi deleted the ML_Relax_Gen branch November 3, 2023 21:04
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.

3 participants