2 #ifndef BL_IFARRAYBOX_H
3 #define BL_IFARRAYBOX_H
4 #include <AMReX_Config.H>
89 template <
RunOn run_on>
113 template <
RunOn run_on>
A virtual base class for objects that manage their own dynamic memory allocation.
Definition: AMReX_Arena.H:100
A FortranArrayBox(FAB)-like object.
Definition: AMReX_BaseFab.H:183
A Fortran Array of ints.
Definition: AMReX_IArrayBox.H:47
IArrayBox() noexcept=default
Construct an invalid FAB with no memory.
static std::unique_ptr< IntDescriptor > getDataDescriptor()
Definition: AMReX_IArrayBox.cpp:98
void readFrom(std::istream &is)
Definition: AMReX_IArrayBox.cpp:116
static std::string getClassName()
Definition: AMReX_IArrayBox.cpp:104
static bool do_initval
Definition: AMReX_IArrayBox.H:108
IArrayBox(Array4< int const > const &a) noexcept
Definition: AMReX_IArrayBox.H:75
~IArrayBox() noexcept override=default
The destructor.
static void Finalize()
Definition: AMReX_IArrayBox.cpp:42
void resize(const Box &b, int N=1, Arena *ar=nullptr)
For debugging purposes we hide BaseFab version and do some extra work.
Definition: AMReX_IArrayBox.cpp:80
IArrayBox(Array4< int const > const &a, IndexType t) noexcept
Definition: AMReX_IArrayBox.H:77
IArrayBox(Array4< int > const &a, IndexType t) noexcept
Definition: AMReX_IArrayBox.H:73
static IFABio const & getFABio()
Definition: AMReX_IArrayBox.cpp:110
static std::unique_ptr< IFABio > ifabio
Definition: AMReX_IArrayBox.H:109
static void Initialize()
Definition: AMReX_IArrayBox.cpp:31
Definition: AMReX_IArrayBox.H:18
static void write_header(std::ostream &os, const IArrayBox &fab, int nvar)
Definition: AMReX_IArrayBox.cpp:154
static void read(std::istream &is, IArrayBox &fab, IntDescriptor const &data_descriptor)
Definition: AMReX_IArrayBox.cpp:162
A Descriptor of the Long Integer type.
Definition: AMReX_FabConv.H:29
Definition: AMReX_Amr.cpp:49
MakeType
Definition: AMReX_MakeType.H:7
RunOn
Definition: AMReX_GpuControl.H:69
Definition: AMReX_Array4.H:61
void * alloc(std::size_t sz) const noexcept
Definition: AMReX_DataAllocator.H:16