Skip to content

'flux registers' for edge-centered EMFs? #2511

Answered by WeiqunZhang
BenWibking asked this question in Q&A
Discussion options

You must be logged in to vote

You can use

    void average_down_edges (const Array<const MultiFab*,AMREX_SPACEDIM>& fine,
                             const Array<MultiFab*,AMREX_SPACEDIM>& crse,
                             const IntVect& ratio,
                             int ngcrse = 0);

to average down fine edge data onto coarse. Additionally, you can use

void MultiFab::OverrideSync (const Periodicity& period = Periodicity::NonPeriodic());

to make the data consistent on internal edges.

However, there is an issue with average_down_edges when there are periodic boundaries. This can be fixed. Will let you know.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@BenWibking
Comment options

BenWibking Dec 3, 2021
Collaborator Author

@WeiqunZhang
Comment options

@BenWibking
Comment options

BenWibking Dec 3, 2021
Collaborator Author

@WeiqunZhang
Comment options

@BenWibking
Comment options

BenWibking Dec 3, 2021
Collaborator Author

Answer selected by BenWibking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants