13 static void copy (T & target,
const T & source,
int nc,
int ng) {
14 target.ParallelCopy(source, 0, 0, nc, ng, ng);
24 static void copy (T & target,
const T & source,
int nc,
int ng) {
25 target.ParallelCopy(source, 0, 0, nc, 0, ng);
35 template<
typename T,
template<
typename>
class Cpy>
38 int ng = mf_in.nGrow();
39 int nc = mf_in.nComp();
41 T mf_out(ba, dm, nc, ng);
55 template<
typename T,
template<
typename>
class Cpy>
59 T mf_out = duplicate<T, Cpy>(ba, dm, mf_in);
60 mf_out.FillBoundary(periodicity);
72 const T & mf_in,
bool regrid_ghost =
false ) {
75 T mf_out = duplicate<T, SymmetricGhost>(ba, dm, mf_in);
78 T mf_out = duplicate<T, AsymmetricGhost>(ba, dm, mf_in);
91 const T & mf_in,
bool regrid_ghost =
false ) {
93 int ng = mf_in.nGrow();
94 int nc = mf_in.nComp();
96 mf_out.define(ba, dm, nc, ng);
109 const T & mf_in,
bool regrid_ghost =
false ) {
111 int ng = mf_in.nGrow();
112 int nc = mf_in.nComp();
114 mf_out.define(ba, dm, nc, ng,
MFInfo(), eb_factory);
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:550
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
void copy(HostToDevice, InIter begin, InIter end, OutIter result) noexcept
A host-to-device copy routine. Note this is just a wrapper around memcpy, so it assumes contiguous st...
Definition: AMReX_GpuContainers.H:121
Definition: AMReX_MultiFabUtilI.H:4
T duplicate(const BoxArray &ba, const DistributionMapping &dm, const T &mf_in)
Definition: AMReX_MultiFabUtilI.H:36
T regrid(const BoxArray &ba, const DistributionMapping &dm, const T &mf_in, bool regrid_ghost=false)
Definition: AMReX_MultiFabUtilI.H:71
FabArray memory allocation information.
Definition: AMReX_FabArray.H:66
Definition: AMReX_MultiFabUtilI.H:23
static void copy(T &target, const T &source, int nc, int ng)
Definition: AMReX_MultiFabUtilI.H:24
General collection of MultiFab utilities.
Definition: AMReX_MultiFabUtilI.H:12
static void copy(T &target, const T &source, int nc, int ng)
Definition: AMReX_MultiFabUtilI.H:13