2 #ifndef AMREX_AuxBoundaryData_H_
3 #define AMREX_AuxBoundaryData_H_
4 #include <AMReX_Config.H>
15 AuxBoundaryData () noexcept = default;
17 AuxBoundaryData (const BoxArray& ba,
20 const Geometry& geom);
22 ~AuxBoundaryData () = default;
24 AuxBoundaryData (AuxBoundaryData&& rhs) = default;
25 AuxBoundaryData& operator= (AuxBoundaryData&& rhs) = default;
27 AuxBoundaryData (const AuxBoundaryData& rhs);
28 AuxBoundaryData& operator= (const AuxBoundaryData& rhs) = delete;
30 void copyTo (MultiFab& destmf,
35 void copyFrom (const MultiFab& srcmf,
41 size_t size () const noexcept
46 void copy (
const AuxBoundaryData& src,
51 void initialize (
const BoxArray& ba,
54 const Geometry& geom);
56 const BoxArray& equivBoxArray () const noexcept
61 void setVal (Real r) {
BL_ASSERT(m_initialized);
if (!m_empty) { m_fabs.setVal(r); } }
68 FArrayBox& operator[] (
const MFIter& mfi) noexcept
72 const FArrayBox& operator[] (
const MFIter& mfi)
const noexcept
77 int nGrow () const noexcept {
BL_ASSERT(m_initialized);
return m_ngrow; }
79 int nComp () const noexcept
84 bool isEmpty () const noexcept {
return m_empty; }
91 bool m_initialized{
false};
#define BL_ASSERT(EX)
Definition: AMReX_BLassert.H:39
AMREX_GPU_HOST_DEVICE Long size(T const &b) noexcept
integer version
Definition: AMReX_GpuRange.H:26
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_Amr.cpp:49
DistributionMapping const & DistributionMap(FabArrayBase const &fa)
int nComp(FabArrayBase const &fa)
bool isEmpty(T n) noexcept
Definition: AMReX_GpuRange.H:14
void setVal(MF &dst, typename MF::value_type val)
dst = val
Definition: AMReX_FabArrayUtility.H:1607