ENH: setSet : parallel reduction of stats

This commit is contained in:
mattijs
2010-12-08 17:33:02 +00:00
parent cddfacb4ce
commit cbfb01db4e

View File

@ -482,7 +482,7 @@ bool doCommand
topoSet& currentSet = currentSetPtr(); topoSet& currentSet = currentSetPtr();
Info<< " Set:" << currentSet.name() Info<< " Set:" << currentSet.name()
<< " Size:" << currentSet.size() << " Size:" << returnReduce(currentSet.size(), sumOp<label>())
<< " Action:" << actionName << " Action:" << actionName
<< endl; << endl;
@ -579,7 +579,9 @@ bool doCommand
); );
Info<< " Writing " << currentSet.name() Info<< " Writing " << currentSet.name()
<< " (size " << currentSet.size() << ") to " << " (size "
<< returnReduce(currentSet.size(), sumOp<label>())
<< ") to "
<< currentSet.instance()/currentSet.local() << currentSet.instance()/currentSet.local()
/currentSet.name() /currentSet.name()
<< " and to vtk file " << vtkName << endl << endl; << " and to vtk file " << vtkName << endl << endl;
@ -589,7 +591,9 @@ bool doCommand
else else
{ {
Info<< " Writing " << currentSet.name() Info<< " Writing " << currentSet.name()
<< " (size " << currentSet.size() << ") to " << " (size "
<< returnReduce(currentSet.size(), sumOp<label>())
<< ") to "
<< currentSet.instance()/currentSet.local() << currentSet.instance()/currentSet.local()
/currentSet.name() << endl << endl; /currentSet.name() << endl << endl;
} }
@ -642,9 +646,9 @@ enum commandStatus
void printMesh(const Time& runTime, const polyMesh& mesh) void printMesh(const Time& runTime, const polyMesh& mesh)
{ {
Info<< "Time:" << runTime.timeName() Info<< "Time:" << runTime.timeName()
<< " cells:" << mesh.nCells() << " cells:" << mesh.globalData().nTotalCells()
<< " faces:" << mesh.nFaces() << " faces:" << mesh.globalData().nTotalFaces()
<< " points:" << mesh.nPoints() << " points:" << mesh.globalData().nTotalPoints()
<< " patches:" << mesh.boundaryMesh().size() << " patches:" << mesh.boundaryMesh().size()
<< " bb:" << mesh.bounds() << nl; << " bb:" << mesh.bounds() << nl;
} }