4 #include <AMReX_Config.H>
59 #ifdef AMREX_STRICT_MODE
71 #ifdef AMREX_STRICT_MODE
112 [[nodiscard]]
int min (
int comp,
114 bool local =
false)
const;
125 [[nodiscard]]
int min (
const Box& region,
128 bool local =
false)
const;
140 [[nodiscard]]
int max (
int comp,
142 bool local =
false)
const;
153 [[nodiscard]]
int max (
const Box& region,
156 bool local =
false)
const;
165 [[nodiscard]] Long
sum (
int comp,
int nghost = 0,
bool local =
false)
const;
170 [[nodiscard]] Long
sum (
Box const& region,
int comp = 0,
bool local =
false)
const;
335 void negate (
int nghost = 0);
350 int nghost = 0)
const;
353 int nghost = 0)
const;
514 #ifdef AMREX_STRICT_MODE
526 #ifdef AMREX_STRICT_MODE
540 std::unique_ptr<iMultiFab>
A virtual base class for objects that manage their own dynamic memory allocation.
Definition: AMReX_Arena.H:100
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:549
Definition: AMReX_FabFactory.H:76
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
Base class for FabArray.
Definition: AMReX_FabArrayBase.H:41
An Array of FortranArrayBox(FAB)-like Objects.
Definition: AMReX_FabArray.H:344
Definition: AMReX_FabFactory.H:50
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
Definition: AMReX_iMultiFab.H:32
static void Initialize()
Definition: AMReX_iMultiFab.cpp:148
IntVect maxIndex(int comp, int nghost=0) const
Definition: AMReX_iMultiFab.cpp:519
void define(const BoxArray &bxs, const DistributionMapping &dm, int nvar, const IntVect &ngrow, const MFInfo &info=MFInfo(), const FabFactory< IArrayBox > &factory=DefaultFabFactory< IArrayBox >())
Definition: AMReX_iMultiFab.cpp:202
int max(int comp, int nghost=0, bool local=false) const
Returns the maximum value contained in component comp of the iMultiFab. The parameter nghost determin...
Definition: AMReX_iMultiFab.cpp:308
Long sum(int comp, int nghost=0, bool local=false) const
Returns the sum in component comp.
Definition: AMReX_iMultiFab.cpp:392
static void Finalize()
Definition: AMReX_iMultiFab.cpp:158
int min(int comp, int nghost=0, bool local=false) const
Returns the minimum value contained in component comp of the iMultiFab. The parameter nghost determin...
Definition: AMReX_iMultiFab.cpp:224
iMultiFab() noexcept=default
Constructs an empty iMultiFab. Data can be defined at a later time using the define member functions ...
static void Subtract(iMultiFab &dst, const iMultiFab &src, int srccomp, int dstcomp, int numcomp, int nghost)
Subtract src from dst including nghost ghost cells. The two iMultiFabs MUST have the same underlying ...
Definition: AMReX_iMultiFab.cpp:67
IntVect minIndex(int comp, int nghost=0) const
Definition: AMReX_iMultiFab.cpp:511
iMultiFab(iMultiFab &&rhs) noexcept=default
void minus(const iMultiFab &mf, int strt_comp, int num_comp, int nghost)
This function subtracts the values of the cells in mf from the corresponding cells of this iMultiFab....
Definition: AMReX_iMultiFab.cpp:527
static void Add(iMultiFab &dst, const iMultiFab &src, int srccomp, int dstcomp, int numcomp, int nghost)
Add src to dst including nghost ghost cells. The two iMultiFabs MUST have the same underlying BoxArra...
Definition: AMReX_iMultiFab.cpp:24
static void Divide(iMultiFab &dst, const iMultiFab &src, int srccomp, int dstcomp, int numcomp, int nghost)
Divide dst by src including nghost ghost cells. The two iMultiFabs MUST have the same underlying BoxA...
Definition: AMReX_iMultiFab.cpp:97
iMultiFab & operator=(iMultiFab &&rhs) noexcept=default
void plus(int val, int comp, int num_comp, int nghost=0)
Adds the scalar value val to the value of each cell in the specified subregion of the iMultiFab....
Definition: AMReX_iMultiFab.cpp:545
void divide(const iMultiFab &mf, int strt_comp, int num_comp, int nghost)
This function divides the values of the cells in mf from the corresponding cells of this iMultiFab....
Definition: AMReX_iMultiFab.cpp:536
static void Multiply(iMultiFab &dst, const iMultiFab &src, int srccomp, int dstcomp, int numcomp, int nghost)
Multiply dst by src including nghost ghost cells. The two iMultiFabs MUST have the same underlying Bo...
Definition: AMReX_iMultiFab.cpp:82
void negate(int comp, int num_comp, int nghost=0)
Negates the value of each cell in the specified subregion of the iMultiFab. The subregion consists of...
Definition: AMReX_iMultiFab.cpp:614
void mult(int val, int comp, int num_comp, int nghost=0)
Scales the value of each cell in the specified subregion of the iMultiFab by the scalar val (a[i] <- ...
Definition: AMReX_iMultiFab.cpp:587
iMultiFab(const iMultiFab &rhs)=delete
static void Copy(iMultiFab &dst, const iMultiFab &src, int srccomp, int dstcomp, int numcomp, int nghost)
Copy from src to dst including nghost ghost cells. The two iMultiFabs MUST have the same underlying B...
Definition: AMReX_iMultiFab.cpp:39
Definition: AMReX_Amr.cpp:49
MakeType
Definition: AMReX_MakeType.H:7
std::unique_ptr< iMultiFab > OwnerMask(FabArrayBase const &mf, const Periodicity &period, const IntVect &ngrow)
Definition: AMReX_iMultiFab.cpp:637
FabArray memory allocation information.
Definition: AMReX_FabArray.H:66