93 Setup(MPI_Comm
const & comm) : comm(comm), initialized(false), points_dst(0)
96 MPI_Comm_rank(comm, &rank);
98 MPI_Comm_size(comm, &size);
138 if((fp = fopen(filename,
"r")) != NULL)
141 fread(crit + 1,
sizeof(
int), 4, fp);
144 fread(&this->time,
sizeof(
double), 1, fp);
157 MPI_Bcast(&crit, 5, MPI_INT, 0, comm);
158 MPI_Bcast(&this->time, 1, MPI_DOUBLE, 0, comm);
160 if(this->initialized)
163 crit[0] += this->type != crit[1];
164 crit[0] += this->dim != crit[2];
165 crit[0] += this->cells != crit[3];
166 crit[0] += this->degree != crit[4];
171 this->type = crit[1];
173 this->cells = crit[3];
174 this->degree = crit[4];
175 this->points_src = this->degree + 1;
176 if(this->points_dst == 0)
177 this->points_dst = this->points_src;