PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
ioFunct.hpp
1 // =================================================================================== //
2 // PRE-COMPILATION INSTRUCTIONS //
3 // =================================================================================== //
4 #ifndef IOFUNCT_HPP_
5 #define IOFUNCT_HPP_
6 
7 // includes
8 #if NOMPI == 0
9 #include <mpi.h>
10 #endif
11 #include <algorithm>
12 #include <string>
13 #include <functional>
14 #include <cctype>
15 #include <fstream>
16 #include <iomanip>
17 #include "Class_Para_Tree.hpp"
18 #include "logFunct.hpp"
19 
20 // =================================================================================== //
21 // NAMESPACES //
22 // =================================================================================== //
23 using namespace std;
24 
25 // =================================================================================== //
26 // PROTOTYPES //
27 // =================================================================================== //
28 
29 typedef vector<vector<uint32_t> > u32vector2D;
30 typedef vector<vector<uint64_t> > u64vector2D;
31 typedef vector<vector<double> > dvector2D;
32 
33 
34 // ----------------------------------------------------------------------------------- //
35 void writeLocalTree(const u32vector2D & nodes, const u32vector2D & connectivity,
36  const u32vector2D & ghostNodes, const u32vector2D & ghostConnectivity,
37  const Class_Para_Tree<2> & ptree, string filename);
38 
39 // ----------------------------------------------------------------------------------- //
40 
41 void writePhysicalTree(const dvector2D & nodes, const u32vector2D & connectivity,
42  const dvector2D & ghostNodes, const u32vector2D & ghostConnectivity,
43  const Class_Para_Tree<2> & ptree, string filename);
44 
45 // ----------------------------------------------------------------------------------- //
46 
47 void writeLocalTree(const u32vector2D & nodes, const u32vector2D & connectivity,
48  const u32vector2D & ghostNodes, const u32vector2D & ghostConnectivity,
49  const Class_Para_Tree<3> & ptree, string filename);
50 
51 // ----------------------------------------------------------------------------------- //
52 
53 void writePhysicalTree(const dvector2D & nodes, const u32vector2D & connectivity,
54  const dvector2D & ghostNodes, const u32vector2D & ghostConnectivity,
55  const Class_Para_Tree<3> & ptree, string filename);
56 
57 // ----------------------------------------------------------------------------------- //
58 
59 #endif
Parallel Octree Manager Class - 3D specialization.
Parallel Octree Manager Class - 2D specialization.