OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ParticleAmrLayout.h
Go to the documentation of this file.
1 #ifndef PARTICLE_AMR_LAYOUT_H
2 #define PARTICLE_AMR_LAYOUT_H
3 
5 
6 template<class T, unsigned Dim>
7 class ParticleAmrLayout : public ParticleLayout<T, Dim> {
8 
9 public:
10  // pair iterator definition ... this layout does not allow for pairlists
11  typedef int pair_t;
16 
17  // type of attributes this layout should use for position and ID
20 
21 public:
22 
24 
28  void setFinestLevel(int finestLevel);
29 
33  void setMaxLevel(int maxLevel);
34 
40  virtual void setBoundingBox(double dh) = 0;
41 
42 protected:
44  int maxLevel_m;
45 };
46 
47 
48 // ============================================================================
49 
50 
51 template <class T, unsigned Dim>
53  : finestLevel_m(0),
54  maxLevel_m(0)
55 { }
56 
57 
58 template <class T, unsigned Dim>
60  finestLevel_m = finestLevel;
61 }
62 
63 
64 template <class T, unsigned Dim>
66  maxLevel_m = maxLevel;
67 }
68 
69 #endif
unsigned Index_t
void setMaxLevel(int maxLevel)
ParticleLayout< T, Dim >::SingleParticlePos_t SingleParticlePos_t
ParticleAttrib< SingleParticlePos_t > ParticlePos_t
void setFinestLevel(int finestLevel)
int maxLevel_m
Maximum level allowed.
int finestLevel_m
Current finest level of simluation.
ParticleAttrib< Index_t > ParticleIndex_t
ParticleLayout< T, Dim >::Index_t Index_t
virtual void setBoundingBox(double dh)=0