WarpX
Namespaces | Functions
CoarsenMR.H File Reference
#include "WarpX.H"
#include <AMReX_Math.H>

Go to the source code of this file.

Namespaces

 CoarsenMR
 

Functions

AMREX_GPU_DEVICE AMREX_FORCE_INLINE Real CoarsenMR::Interp (Array4< Real const > const &arr_src, GpuArray< int, 3 > const &sf, GpuArray< int, 3 > const &sc, GpuArray< int, 3 > const &cr, const int i, const int j, const int k, const int comp)
 Interpolates the floating point data contained in the source Array4 arr_src, extracted from a fine MultiFab, with weights defined in such a way that the total charge is preserved. More...
 
void CoarsenMR::Loop (MultiFab &mf_dst, const MultiFab &mf_src, const int ncomp, const IntVect ngrow, const IntVect crse_ratio)
 Loops over the boxes of the coarsened MultiFab mf_dst and fills them by interpolating the data contained in the fine MultiFab mf_src. More...
 
void CoarsenMR::Coarsen (MultiFab &mf_dst, const MultiFab &mf_src, const IntVect crse_ratio)
 Stores in the coarsened MultiFab mf_dst the values obtained by interpolating the data contained in the fine MultiFab mf_src. More...