OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <ParticleAmrLayout.h>
Public Types | |
typedef int | pair_t |
typedef pair_t * | pair_iterator |
typedef ParticleLayout< T, Dim > ::SingleParticlePos_t | SingleParticlePos_t |
typedef ParticleLayout< T, Dim > ::Index_t | Index_t |
typedef ParticleAttrib < SingleParticlePos_t > | ParticlePos_t |
typedef ParticleAttrib< Index_t > | ParticleIndex_t |
![]() | |
enum | { Dimension = Dim } |
enum | UpdateFlags { SWAP, BCONDS, NUMFLAGS, OPTDESTROY, ALL } |
typedef T | Position_t |
typedef unsigned | Index_t |
typedef Vektor< T, Dim > | SingleParticlePos_t |
Public Member Functions | |
ParticleAmrLayout () | |
void | setFinestLevel (int finestLevel) |
void | setMaxLevel (int maxLevel) |
virtual void | setBoundingBox (double dh)=0 |
![]() | |
ParticleLayout () | |
~ParticleLayout () | |
void | setUpdateFlag (UpdateFlags f, bool val) |
bool | getUpdateFlag (UpdateFlags f) const |
ParticleBConds< T, Dim > & | getBConds () |
void | setBConds (const ParticleBConds< T, Dim > &bc) |
Protected Attributes | |
int | finestLevel_m |
Current finest level of simluation. More... | |
int | maxLevel_m |
Maximum level allowed. More... | |
Additional Inherited Members | |
![]() | |
template<class PPT , class NDI > | |
void | apply_bconds (unsigned n, PPT &R, const ParticleBConds< T, Dim > &bcs, const NDI &nr) |
Definition at line 7 of file ParticleAmrLayout.h.
typedef ParticleLayout<T, Dim>::Index_t ParticleAmrLayout< T, Dim >::Index_t |
Definition at line 15 of file ParticleAmrLayout.h.
typedef pair_t* ParticleAmrLayout< T, Dim >::pair_iterator |
Definition at line 12 of file ParticleAmrLayout.h.
typedef int ParticleAmrLayout< T, Dim >::pair_t |
Definition at line 11 of file ParticleAmrLayout.h.
typedef ParticleAttrib<Index_t> ParticleAmrLayout< T, Dim >::ParticleIndex_t |
Definition at line 19 of file ParticleAmrLayout.h.
typedef ParticleAttrib<SingleParticlePos_t> ParticleAmrLayout< T, Dim >::ParticlePos_t |
Definition at line 18 of file ParticleAmrLayout.h.
typedef ParticleLayout<T, Dim>::SingleParticlePos_t ParticleAmrLayout< T, Dim >::SingleParticlePos_t |
Definition at line 14 of file ParticleAmrLayout.h.
ParticleAmrLayout< T, Dim >::ParticleAmrLayout | ( | ) |
Definition at line 52 of file ParticleAmrLayout.h.
|
pure virtual |
Set the computational domain of the base level. E.g. the computational domain is [-1, 1]^3. With dh = 4, we get a new domain of [-1.04, 1.04]^3.
dh | is the mesh enlargement in [%] |
Implemented in BoxLibLayout< T, Dim >.
void ParticleAmrLayout< T, Dim >::setFinestLevel | ( | int | finestLevel | ) |
finestLevel | of current simulation state |
Definition at line 59 of file ParticleAmrLayout.h.
Referenced by AmrBoxLib::doRegrid_m().
void ParticleAmrLayout< T, Dim >::setMaxLevel | ( | int | maxLevel | ) |
maxLevel | allowed during simulation run |
Definition at line 65 of file ParticleAmrLayout.h.
|
protected |
Current finest level of simluation.
Definition at line 43 of file ParticleAmrLayout.h.
|
protected |
Maximum level allowed.
Definition at line 44 of file ParticleAmrLayout.h.
Referenced by BoxLibLayout< T, Dim >::BoxLibLayout(), and BoxLibLayout< T, Dim >::resize().