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);
21 pablo1.
write(
"Pablo1b_iter0");
26 pablo1.
write(
"Pablo1b_iter1");
37 for (
int i=0; i<nocts; i++){
38 vector<double> center = pablo1.
getCenter(i);
50 for (
int iter=0; iter<nref1; iter++){
52 for (
int i=0; i<nocts; i++){
56 vector<double> center = pablo1.
getCenter(oct);
61 if ((pow((x-xc),2.0)+pow((y-yc),2.0) < pow(radius,2.0)) &&
69 pablo1.
write(
"Pablo1b_iter"+to_string(static_cast<unsigned long long>(iter+2)));
82 for (
int i=0; i<nocts; i++){
84 vector<double> center = pablo1.
getCenter(i);
87 if ((pow((x-xc),2.0)+pow((y-yc),2.0) < pow(radius,2.0)) &&
88 (y>yc) && iter<=nref2 && pablo1.
getLevel(i)<=iter+1){
94 done = pablo1.
adapt();
96 pablo1.
write(
"Pablo1b_iter"+to_string(static_cast<unsigned long long>(iter+nref1+2)));
103 pablo1.
write(
"Pablo1b_iter"+to_string(static_cast<unsigned long long>(iter+nref1+3)));
uint8_t getLevel(Class_Octant< 2 > *oct)
Class_Octant< 2 > * getOctant(uint32_t idx)
Parallel Octree Manager Class - 2D specialization.
Octant class definition - 2D specialization.
void setMarker(Class_Octant< 2 > *oct, int8_t marker)
uint32_t getNumOctants() const
void setBalanceCodimension(uint8_t b21codim)
void updateConnectivity()
void write(string filename)
void setBalance(Class_Octant< 2 > *oct, bool balance)
void getCenter(Class_Octant< 2 > *oct, vector< double > ¢er)
void computeConnectivity()