1 #include "preprocessor_defines.dat"
2 #include "Class_Global.hpp"
3 #include "Class_Para_Tree.hpp"
9 int main(
int argc,
char *argv[]) {
12 MPI::Init(argc, argv);
26 pablo2.
write(
"Pablo2_iter0");
29 for (
int iter=1; iter<3; iter++){
32 pablo2.
write(
"Pablo2_iter"+to_string(static_cast<unsigned long long>(iter)));
41 for (
int iter=3; iter<9; iter++){
43 for (
int i=0; i<nocts; i++){
45 vector<vector<double> > nodes = pablo2.
getNodes(i);
46 for (
int j=0; j<global2D.
nnodes; j++){
47 double x = nodes[j][0];
48 double y = nodes[j][1];
49 if ((pow((x-xc),2.0)+pow((y-yc),2.0) <= pow(radius,2.0))){
59 pablo2.
write(
"Pablo2_iter"+to_string(static_cast<unsigned long long>(iter)));
Parallel Octree Manager Class - 2D specialization.
void setMarker(Class_Octant< 2 > *oct, int8_t marker)
void getNodes(Class_Octant< 2 > *oct, dvector2D &nodes)
uint32_t getNumOctants() const
void setBalanceCodimension(uint8_t b21codim)
void updateConnectivity()
void write(string filename)
void setBalance(Class_Octant< 2 > *oct, bool balance)
void computeConnectivity()