rebl-AMR
ReblAmr.h
Go to the documentation of this file.
1 #ifndef _REBLAMR_H_
2 #define _REBLEAMR_H_
3 #include "communicate.h"
4 #include "definitions.h"
5 #include "geomSTL.h"
6 #include "partition.h"
7 #include "templateForest.h"
8 #include "templatePhdf5.h"
9 #include "tree.h"
10 #include "typedefs.h"
18 template <size_t N, typename Nvalue, size_t M, typename Mvalue>
19 class ReblAmr
20 {
21  private:
22  real xyz1[6];
25  int proclevel;
26  int meshlevel;
29  uint * ID = nullptr;
32  public:
33  ReblAmr<N, Nvalue, M, Mvalue>( int argcs, char *pArgs[], real *length, real *coords, uint nx, uint ny,
34  uint nz );
35  void generateProcTopology();
36  void countPointsinBox();
37  void asignWeightsForPart();
38  void assignPartToProc();
39  void distributeTopology();
40  void MPIStartUp();
41  void forestConstruct( int argcs, char *pArgs[], real *length, real *coords, uint nx, uint ny,
42  uint nz );
44  void setForestParams();
45  void createComPattern();
46  void moveGeometry( double *xx ); /*<! moves the geometry given the xx coordinates of its center of mass */
47  void refineForest();
48  void getTotalMeshSize();
49  void writeMesh(int index);
50  void writeRunInfo();
52  ~ReblAmr();
53 };
54 
55 #endif
Tree< PROCSIZE, uint > Proc
Definition: ReblAmr.h:23
Definition: partition.h:85
void createComPattern()
Definition: ReblAmr.cpp:246
void assignPartToProc()
Definition: ReblAmr.cpp:190
void writeRunInfo()
Definition: ReblAmr.cpp:292
void asignWeightsForPart()
Definition: ReblAmr.cpp:160
void refineForest()
Definition: ReblAmr.cpp:265
TemplateForest< N, Nvalue, M, Mvalue, Tree< M, Mvalue > > Forest
Definition: ReblAmr.h:30
void MPIStartUp()
Definition: ReblAmr.cpp:298
int proclevel
Definition: ReblAmr.h:25
void distributeTopology()
Definition: ReblAmr.cpp:229
void getTotalMeshSize()
Definition: ReblAmr.cpp:271
Definition: ReblAmr.h:19
Definition: geomSTL.h:65
Template Class designed to unify tree and full_tree topologies.
Definition: templateForest.h:22
uint * ID
Definition: ReblAmr.h:29
void writeMesh(int index)
Definition: ReblAmr.cpp:277
int meshlevel
Definition: ReblAmr.h:26
Partition Part
Definition: ReblAmr.h:27
void setForestParams()
Definition: ReblAmr.cpp:239
MpiCom Com
Definition: ReblAmr.h:28
void generateProcTopology()
Definition: ReblAmr.cpp:60
real xyz1[6]
Definition: ReblAmr.h:22
double real
Definition: definitions.h:37
unsigned int uint
Definition: definitions.h:38
~ReblAmr()
Definition: ReblAmr.cpp:89
void forestConstruct(int argcs, char *pArgs[], real *length, real *coords, uint nx, uint ny, uint nz)
Definition: ReblAmr.cpp:153
void moveGeometry(double *xx)
Definition: ReblAmr.cpp:259
class for embedding data related to the communicator
Definition: communicate.h:10
void countPointsinBox()
Definition: ReblAmr.cpp:95
GeomSTL GMT
Definition: ReblAmr.h:24