Skip to content

avoiding allocating extra MultiFab for boundary filling? #2147

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

You must be logged in to vote

In FillPatch, the destination MultiFab is allowed to be the same object as one of the source MultiFabs as long as the function arguments are consistent. Besides MultiFabs, FillPatch also takes times as argument, and each MultiFab is associated with a time. In the case there is aliasing in MultiFabs, the destination MulitiFab's time must agree with its alias MultiFab's time. As for performance, it's usually better when there is aliasing because there is less data involved.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenWibking
Comment options

BenWibking Jul 5, 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