Access to data on both sides of a refinement interface #3343
Unanswered
avergnaud002
asked this question in
Q&A
Replies: 1 comment 7 replies
-
For a given coarse cell next to the coarse/fine interface, there are multiple fine cells on the other side of the interface. Are you trying to access all the fine cells? For a given fine cell next to the interface, do you simply want the value of the coarse cell next to it without any spatial interpolation? Have you looked at the functions in AMReX_fillpatch_mod.F90? If you type `git grep amrex_fillpatch", you should see some examples of using the fillpatch function. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Given a cell or a face (with index i,j,k) at a refinement interface, is there a simple way to access the data (cell-centered and/or face-centered data) that are on the other side of the interface ? I am interested of access both fine data from coarse level, and coarse data from fine level.
Potentially those data are on different ranks but I want to avoid, as much as possible, blocking calls and loops over MultiFab and/or boxes.
I want to call this sort of « function » inside a loop (like mfiter or octree_iter), so it is maybe more clever to work directly at the box/Fab « level » (instead of working from i,j,k index).
I use the Fortran Interface of AMReX.
thank you
Alban
Beta Was this translation helpful? Give feedback.
All reactions