1 #ifndef AMREX_AmrParGDB_H
2 #define AMREX_AmrParGDB_H
3 #include <AMReX_Config.H>
22 m_ba(amr->maxLevel()+1)
26 [[nodiscard]]
const Geometry&
Geom (
int level)
const override;
51 [[nodiscard]]
bool LevelDefined (
int level)
const override;
53 [[nodiscard]]
int maxLevel ()
const override;
56 [[nodiscard]]
int MaxRefRatio (
int level)
const override;
109 if (
m_dmap[level].empty()) {
145 if (
m_ba[level].empty()) {
163 if (
m_ba[0].empty()) {
180 m_ba[level] = new_ba;
Provide basic functionalities to set up an AMR hierarchy.
Definition: AMReX_AmrCore.H:25
int maxLevel() const noexcept
Return the max level.
Definition: AMReX_AmrMesh.H:92
const Vector< BoxArray > & boxArray() const noexcept
Definition: AMReX_AmrMesh.H:108
const Vector< Geometry > & Geom() const noexcept
Definition: AMReX_AmrMesh.H:106
bool LevelDefined(int lev) const noexcept
Definition: AMReX_AmrMesh.cpp:441
int finestLevel() const noexcept
Return the finest level.
Definition: AMReX_AmrMesh.H:95
IntVect refRatio(int lev) const noexcept
Return the refinement ratio for level lev.
Definition: AMReX_AmrMesh.H:98
int MaxRefRatio(int lev) const noexcept
Return the maximum refinement ratio in any direction.
Definition: AMReX_AmrMesh.cpp:389
const Vector< DistributionMapping > & DistributionMap() const noexcept
Definition: AMReX_AmrMesh.H:107
Definition: AMReX_AmrParGDB.H:12
AmrCore * m_amrcore
Definition: AMReX_AmrParGDB.H:62
const Vector< DistributionMapping > & DistributionMap() const override
Definition: AMReX_AmrParGDB.H:136
const Vector< BoxArray > & ParticleBoxArray() const override
Definition: AMReX_AmrParGDB.H:161
Vector< IntVect > refRatio() const override
Definition: AMReX_AmrParGDB.H:245
Vector< int > m_has_geom
Definition: AMReX_AmrParGDB.H:64
const Vector< Geometry > & Geom() const override
Definition: AMReX_AmrParGDB.H:100
Vector< BoxArray > m_ba
Definition: AMReX_AmrParGDB.H:66
void ClearParticleGeometry(int level) override
Definition: AMReX_AmrParGDB.H:209
const Vector< BoxArray > & boxArray() const override
Definition: AMReX_AmrParGDB.H:172
int maxLevel() const override
Definition: AMReX_AmrParGDB.H:231
void ClearParticleBoxArray(int level) override
Definition: AMReX_AmrParGDB.H:197
void SetParticleDistributionMap(int level, const DistributionMapping &new_dm) override
Definition: AMReX_AmrParGDB.H:184
void SetParticleBoxArray(int level, const BoxArray &new_ba) override
Definition: AMReX_AmrParGDB.H:178
Vector< Geometry > m_geom
Definition: AMReX_AmrParGDB.H:63
void ClearParticleDistributionMap(int level) override
Definition: AMReX_AmrParGDB.H:203
const Vector< DistributionMapping > & ParticleDistributionMap() const override
Definition: AMReX_AmrParGDB.H:125
friend AmrCore
Definition: AMReX_AmrParGDB.H:13
AmrParGDB(AmrCore *amr) noexcept
Definition: AMReX_AmrParGDB.H:17
Vector< DistributionMapping > m_dmap
Definition: AMReX_AmrParGDB.H:65
int finestLevel() const override
Definition: AMReX_AmrParGDB.H:224
bool LevelDefined(int level) const override
Definition: AMReX_AmrParGDB.H:217
void SetParticleGeometry(int level, const Geometry &new_geom) override
Definition: AMReX_AmrParGDB.H:190
int MaxRefRatio(int level) const override
Definition: AMReX_AmrParGDB.H:252
const Vector< Geometry > & ParticleGeom() const override
Definition: AMReX_AmrParGDB.H:89
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:549
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
Rectangular problem domain geometry.
Definition: AMReX_Geometry.H:73
Definition: AMReX_ParGDB.H:13
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_Amr.cpp:49