mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
extraneous reduce on noFailedChecks
This commit is contained in:
@ -94,7 +94,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
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)
|
||||
{
|
||||
@ -112,8 +113,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
label nFailedChecks = checkGeometry(mesh, allGeometry);
|
||||
|
||||
reduce(nFailedChecks, sumOp<label>());
|
||||
|
||||
if (nFailedChecks)
|
||||
{
|
||||
Info<< "\nFailed " << nFailedChecks << " mesh checks.\n"
|
||||
|
||||
Reference in New Issue
Block a user