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);
27 pablo13.
write(
"Pablo13_iter"+to_string(static_cast<unsigned long long>(iter)));
30 for (iter=1; iter<3; iter++){
33 pablo13.
write(
"Pablo13_iter"+to_string(static_cast<unsigned long long>(iter)));
47 for (iter=3; iter<9; iter++){
49 for (
int i=0; i<nocts; i++){
51 vector<vector<double> > nodes = pablo13.
getNodes(i);
52 for (
int j=0; j<global2D.
nnodes; j++){
53 double x = nodes[j][0];
54 double y = nodes[j][1];
55 if ((pow((x-xc),2.0)+pow((y-yc),2.0) <= pow(radius,2.0))){
71 pablo13.
write(
"Pablo13_iter"+to_string(static_cast<unsigned long long>(iter)));
77 pablo13.
write(
"Pablo13_iter"+to_string(static_cast<unsigned long long>(iter)));
85 for (iter=10; iter<15; iter++){
87 for (
int i=0; i<nocts; i++){
89 vector<vector<double> > nodes = pablo13.
getNodes(i);
90 for (
int j=0; j<global2D.
nnodes; j++){
91 double x = nodes[j][0];
92 double y = nodes[j][1];
94 if ((pow((x-xc),2.0)+pow((y-yc),2.0) <= pow(radius,2.0))){
109 pablo13.
write(
"Pablo13_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()