Does AMReX provide a piecewise constant cell-centered interpolater? #4507
-
Hi all, I'm working with AMReX in 2D using cell-centered data, and I'm using However, in my case I just want a simple piecewise constant interpolation, where each fine cell simply copies the value from its corresponding coarse cell (i.e., no interpolation, just duplication of the coarse value). My questions are: Does AMReX already provide a built-in piecewise constant interpolater for cell-centered data? If not, what is the recommended way to implement such an interpolater in AMReX? Do I need to subclass Any minimal example or pointers to relevant documentation would be much appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use amrex/Src/AmrCore/AMReX_Interpolater.H Line 446 in 65bf80d |
Beta Was this translation helpful? Give feedback.
You can use
pc_interp
, which does piecewise constant interpolation on cell centered data.amrex/Src/AmrCore/AMReX_Interpolater.H
Line 446 in 65bf80d