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 pablo3.
write(
"Pablo3_iter"+to_string(static_cast<unsigned long long>(iter)));
29 for (iter=1; iter<3; iter++){
32 pablo3.
write(
"Pablo3_iter"+to_string(static_cast<unsigned long long>(iter)));
41 for (iter=3; iter<9; iter++){
43 for (
int i=0; i<nocts; i++){
45 vector<vector<double> > nodes = pablo3.
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 pablo3.
write(
"Pablo3_iter"+to_string(static_cast<unsigned long long>(iter)));
65 pablo3.
write(
"Pablo3_iter"+to_string(static_cast<unsigned long long>(iter)));
72 for (iter=10; iter<15; iter++){
74 for (
int i=0; i<nocts; i++){
76 vector<vector<double> > nodes = pablo3.
getNodes(i);
77 for (
int j=0; j<global2D.
nnodes; j++){
78 double x = nodes[j][0];
79 double y = nodes[j][1];
81 if ((pow((x-xc),2.0)+pow((y-yc),2.0) <= pow(radius,2.0))){
89 pablo3.
write(
"Pablo3_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 updateConnectivity()
void write(string filename)
void setBalance(Class_Octant< 2 > *oct, bool balance)
void computeConnectivity()