extraneous reduce on noFailedChecks

This commit is contained in:
mattijs
2009-10-23 18:35:26 +01:00
parent 19359869f4
commit 122f3c466f

View File

@ -94,7 +94,8 @@ int main(int argc, char *argv[])
noFailedChecks += checkGeometry(mesh, allGeometry); noFailedChecks += checkGeometry(mesh, allGeometry);
reduce(noFailedChecks, sumOp<label>()); // Note: no reduction in noFailedChecks necessary since is
// counter of checks, not counter of failed cells,faces etc.
if (noFailedChecks == 0) if (noFailedChecks == 0)
{ {
@ -112,8 +113,6 @@ int main(int argc, char *argv[])
label nFailedChecks = checkGeometry(mesh, allGeometry); label nFailedChecks = checkGeometry(mesh, allGeometry);
reduce(nFailedChecks, sumOp<label>());
if (nFailedChecks) if (nFailedChecks)
{ {
Info<< "\nFailed " << nFailedChecks << " mesh checks.\n" Info<< "\nFailed " << nFailedChecks << " mesh checks.\n"