|
WarpX
|
#include <MultiFabRegister.H>
Public Member Functions | |
| AMREX_INLINE bool | is_vector () const |
| AMREX_INLINE bool | is_alias () const |
Public Attributes | |
| amrex::MultiFab | m_mf |
| std::optional< Direction > | m_dir = std::nullopt |
| int | m_level = 0 |
| bool | m_remake = true |
| bool | m_redistribute_on_remake = true |
| std::string | m_owner |
A class to control the lifetime and properties of a MultiFab (field).
This class is used to own the lifetime of an amrex::MultiFab and to store associated information around it regarding unique naming, scalar/vector/tensor properties, aliasing, load balancing, etc.
|
inline |
Is this an alias MultiFab?
If yes, that means we do not own the memory.
|
inline |
Is this part of a vector/tensor?
| std::optional<Direction> ablastr::fields::MultiFabOwner::m_dir = std::nullopt |
Components (base vector directions) of this MultiFab
| int ablastr::fields::MultiFabOwner::m_level = 0 |
the MR level of this (i)MultiFab
| amrex::MultiFab ablastr::fields::MultiFabOwner::m_mf |
owned (i)MultiFab
| std::string ablastr::fields::MultiFabOwner::m_owner |
if m_mf is a non-owning alias, this string tracks the name of the owner
| bool ablastr::fields::MultiFabOwner::m_redistribute_on_remake = true |
redistribute on
| bool ablastr::fields::MultiFabOwner::m_remake = true |
remake distribution map on load balance,