Block-Structured AMR Software Framework
amrex::ParGDB Class Reference

we use this for non-Amr particle code More...

#include <AMReX_ParGDB.H>

Inheritance diagram for amrex::ParGDB:
amrex::ParGDBBase

Public Member Functions

 ParGDB ()=default
 
 ParGDB (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba)
 
 ParGDB (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr)
 
 ParGDB (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr)
 
const GeometryParticleGeom (int level) const override
 
const GeometryGeom (int level) const override
 
const Vector< Geometry > & ParticleGeom () const override
 
const Vector< Geometry > & Geom () const override
 
const DistributionMappingParticleDistributionMap (int level) const override
 
const DistributionMappingDistributionMap (int level) const override
 
const Vector< DistributionMapping > & ParticleDistributionMap () const override
 
const Vector< DistributionMapping > & DistributionMap () const override
 
const BoxArrayParticleBoxArray (int level) const override
 
const BoxArrayboxArray (int level) const override
 
const Vector< BoxArray > & ParticleBoxArray () const override
 
const Vector< BoxArray > & boxArray () const override
 
void SetParticleBoxArray (int level, const BoxArray &new_ba) override
 
void SetParticleDistributionMap (int level, const DistributionMapping &new_dm) override
 
void SetParticleGeometry (int level, const Geometry &new_geom) override
 
void ClearParticleBoxArray (int level) override
 
void ClearParticleDistributionMap (int level) override
 
void ClearParticleGeometry (int level) override
 
bool LevelDefined (int level) const override
 
int finestLevel () const override
 
int maxLevel () const override
 
IntVect refRatio (int level) const override
 
int MaxRefRatio (int level) const override
 
Vector< IntVectrefRatio () const override
 
- Public Member Functions inherited from amrex::ParGDBBase
 ParGDBBase () noexcept=default
 
virtual ~ParGDBBase ()=default
 
 ParGDBBase (ParGDBBase const &) noexcept=default
 
 ParGDBBase (ParGDBBase &&) noexcept=default
 
ParGDBBaseoperator= (ParGDBBase const &) noexcept=default
 
ParGDBBaseoperator= (ParGDBBase &&) noexcept=default
 
template<class MF >
bool OnSameGrids (int level, const MF &mf) const
 

Protected Attributes

Vector< Geometrym_geom
 
Vector< DistributionMappingm_dmap
 
Vector< BoxArraym_ba
 
Vector< IntVectm_rr
 
int m_nlevels
 

Detailed Description

we use this for non-Amr particle code

Constructor & Destructor Documentation

◆ ParGDB() [1/4]

amrex::ParGDB::ParGDB ( )
default

◆ ParGDB() [2/4]

amrex::ParGDB::ParGDB ( const Geometry geom,
const DistributionMapping dmap,
const BoxArray ba 
)
inline

◆ ParGDB() [3/4]

amrex::ParGDB::ParGDB ( const Vector< Geometry > &  geom,
const Vector< DistributionMapping > &  dmap,
const Vector< BoxArray > &  ba,
const Vector< int > &  rr 
)
inline

◆ ParGDB() [4/4]

amrex::ParGDB::ParGDB ( const Vector< Geometry > &  geom,
const Vector< DistributionMapping > &  dmap,
const Vector< BoxArray > &  ba,
const Vector< IntVect > &  rr 
)
inline

Member Function Documentation

◆ boxArray() [1/2]

const Vector< BoxArray > & amrex::ParGDB::boxArray ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ boxArray() [2/2]

const BoxArray & amrex::ParGDB::boxArray ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ClearParticleBoxArray()

void amrex::ParGDB::ClearParticleBoxArray ( int  level)
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ClearParticleDistributionMap()

void amrex::ParGDB::ClearParticleDistributionMap ( int  level)
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ClearParticleGeometry()

void amrex::ParGDB::ClearParticleGeometry ( int  level)
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ DistributionMap() [1/2]

const Vector< DistributionMapping > & amrex::ParGDB::DistributionMap ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ DistributionMap() [2/2]

const DistributionMapping & amrex::ParGDB::DistributionMap ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ finestLevel()

int amrex::ParGDB::finestLevel ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ Geom() [1/2]

const Vector< Geometry > & amrex::ParGDB::Geom ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ Geom() [2/2]

const Geometry & amrex::ParGDB::Geom ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ LevelDefined()

bool amrex::ParGDB::LevelDefined ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ maxLevel()

int amrex::ParGDB::maxLevel ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ MaxRefRatio()

int amrex::ParGDB::MaxRefRatio ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleBoxArray() [1/2]

const Vector< BoxArray > & amrex::ParGDB::ParticleBoxArray ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleBoxArray() [2/2]

const BoxArray & amrex::ParGDB::ParticleBoxArray ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleDistributionMap() [1/2]

const Vector< DistributionMapping > & amrex::ParGDB::ParticleDistributionMap ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleDistributionMap() [2/2]

const DistributionMapping & amrex::ParGDB::ParticleDistributionMap ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleGeom() [1/2]

const Vector< Geometry > & amrex::ParGDB::ParticleGeom ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ ParticleGeom() [2/2]

const Geometry & amrex::ParGDB::ParticleGeom ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ refRatio() [1/2]

Vector< IntVect > amrex::ParGDB::refRatio ( ) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ refRatio() [2/2]

IntVect amrex::ParGDB::refRatio ( int  level) const
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ SetParticleBoxArray()

void amrex::ParGDB::SetParticleBoxArray ( int  level,
const BoxArray new_ba 
)
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ SetParticleDistributionMap()

void amrex::ParGDB::SetParticleDistributionMap ( int  level,
const DistributionMapping new_dm 
)
inlineoverridevirtual

Implements amrex::ParGDBBase.

◆ SetParticleGeometry()

void amrex::ParGDB::SetParticleGeometry ( int  level,
const Geometry new_geom 
)
inlineoverridevirtual

Implements amrex::ParGDBBase.

Member Data Documentation

◆ m_ba

Vector<BoxArray> amrex::ParGDB::m_ba
protected

◆ m_dmap

Vector<DistributionMapping> amrex::ParGDB::m_dmap
protected

◆ m_geom

Vector<Geometry> amrex::ParGDB::m_geom
protected

◆ m_nlevels

int amrex::ParGDB::m_nlevels
protected

◆ m_rr

Vector<IntVect> amrex::ParGDB::m_rr
protected

The documentation for this class was generated from the following file: