Commit 19e17a5e authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

one should do it in a correct way: only do a comm().sum, min, max operation if...

one should do it in a correct way: only do a comm().sum, min, max operation if more than one process is involved. Removes mysterious bug if cmake build is used.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5289 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 004737e6
......@@ -208,7 +208,7 @@ public:
dest += this->localResidual().residual(i);
};
if (gridView_().comm().size() > 1)
if (this->gridView_().comm().size() > 1)
this->gridView_().comm().sum(dest);
}
......@@ -581,7 +581,7 @@ public:
// make sure that if there was a variable switch in an
// other partition we will also set the switch flag
// for our partition.
if (gridView_().comm().size() > 1)
if (this->gridView_().comm().size() > 1)
wasSwitched = this->gridView_().comm().max(wasSwitched);
setSwitched_(wasSwitched);
......
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