PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
test0.cpp
1 #include "preprocessor_defines.dat"
2 #include "Class_Global.hpp"
3 #include "Class_Para_Tree.hpp"
4 
5 using namespace std;
6 
7 // =================================================================================== //
8 
9 int main(int argc, char *argv[]) {
10 
11 #if NOMPI==0
12  MPI::Init(argc, argv);
13 
14  {
15 #endif
16 
17  Class_Para_Tree<2> ptreedefault;
19  ptreedefault.write("Pablo0_default");
21  ptreedefault.writeLogical("Pablo0_default_logical");
22 
24  double X, Y, Z, L;
25  X = 10.0; Y = 20.0; Z = 0.0; L = 250.0;
27  Class_Para_Tree<2> ptreecustom(X, Y, Z, L);
29  ptreecustom.write("Pablo0_custom");
31  ptreecustom.writeLogical("Pablo0_custom_logical");
32 
33 #if NOMPI==0
34  }
35 
36  MPI::Finalize();
37 #endif
38 }
39 
Parallel Octree Manager Class - 2D specialization.
void writeLogical(string filename)
void write(string filename)