Commit b23826fc authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

renaming parallel class member

parent fbb65fa2
......@@ -9,17 +9,17 @@ struct SampleCounter {
int dM = 0;
int dMComm = 0;
int commSplit = 0;
int distSamples = false;
int parallel = true;
SampleCounter() {};
SampleCounter(int dM) {
SampleCounter(int dM, bool parallel=true) : parallel(parallel) {
UpdateSampleCounter(dM);
}
void UpdateSampleCounter(int dM) {
this->dM = dM;
if (distSamples) {
if (parallel) {
for (int i = 0; i < ceil(log2(PPM->Size(0))) + 1; i++) {
if (dM >= PPM->Size(i)) {
dMComm = ceil((double) dM / PPM->Size(i));
......@@ -33,16 +33,6 @@ struct SampleCounter {
}
}
// int MonteCarlo::computeCommSplit() {
// PPM->FullSplit();
// std::cout << "test" << endl;
// for (int i = PPM->MaxCommSplit(); i >= 0; i--)
// if (pow(2, i * meshes->dim()) * ctr.dM >= PPM->Size(0))
// std::cout << "i " << i << endl;
//// PPM->SplitCommunicators(i);
// return 0;
// }
SampleCounter(int M, int dM) :
M(M), dM(dM) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment