STYLE: redistributeMeshPar : cleanup

This commit is contained in:
mattijs
2011-02-15 12:49:16 +00:00
parent 5685459a9f
commit ac7c938c95

View File

@ -73,8 +73,8 @@ autoPtr<fvMesh> createMesh
const bool haveMesh const bool haveMesh
) )
{ {
Pout<< "Create mesh for time = " //Pout<< "Create mesh for time = "
<< runTime.timeName() << nl << endl; // << runTime.timeName() << nl << endl;
IOobject io IOobject io
( (
@ -98,12 +98,12 @@ autoPtr<fvMesh> createMesh
xferCopy(labelList()), xferCopy(labelList()),
false false
); );
Pout<< "Writing dummy mesh to " << dummyMesh.polyMesh::objectPath() //Pout<< "Writing dummy mesh to " << dummyMesh.polyMesh::objectPath()
<< endl; // << endl;
dummyMesh.write(); dummyMesh.write();
} }
Pout<< "Reading mesh from " << io.objectPath() << endl; //Pout<< "Reading mesh from " << io.objectPath() << endl;
autoPtr<fvMesh> meshPtr(new fvMesh(io)); autoPtr<fvMesh> meshPtr(new fvMesh(io));
fvMesh& mesh = meshPtr(); fvMesh& mesh = meshPtr();
@ -201,9 +201,8 @@ autoPtr<fvMesh> createMesh
break; break;
} }
Pout<< "Adding patch:" << nPatches //Pout<< "Adding patch:" << nPatches
<< " name:" << name // << " name:" << name << " type:" << type << endl;
<< " type:" << type << endl;
dictionary patchDict(e.dict()); dictionary patchDict(e.dict());
patchDict.remove("nFaces"); patchDict.remove("nFaces");
@ -282,8 +281,7 @@ autoPtr<fvMesh> createMesh
if (!haveMesh) if (!haveMesh)
{ {
// We created a dummy mesh file above. Delete it. // We created a dummy mesh file above. Delete it.
Pout<< "Removing dummy mesh " << io.objectPath() //Pout<< "Removing dummy mesh " << io.objectPath() << endl;
<< endl;
rmDir(io.objectPath()); rmDir(io.objectPath());
} }
@ -351,17 +349,19 @@ scalar getMergeDistance
} }
void printMeshData(Ostream& os, const polyMesh& mesh) //void printMeshData(Ostream& os, const polyMesh& mesh)
{ //{
os << "Number of points: " << mesh.points().size() << nl // os << "Number of points: " << mesh.points().size() << nl
<< " faces: " << mesh.faces().size() << nl // << " faces: " << mesh.faces().size() << nl
<< " internal faces: " << mesh.faceNeighbour().size() << nl // << " internal faces: " << mesh.faceNeighbour().size() << nl
<< " cells: " << mesh.cells().size() << nl // << " cells: " << mesh.cells().size() << nl
<< " boundary patches: " << mesh.boundaryMesh().size() << nl // << " boundary patches: " << mesh.boundaryMesh().size() << nl
<< " point zones: " << mesh.pointZones().size() << nl // << " point zones: " << mesh.pointZones().size() << nl
<< " face zones: " << mesh.faceZones().size() << nl // << " face zones: " << mesh.faceZones().size() << nl
<< " cell zones: " << mesh.cellZones().size() << nl; // << " cell zones: " << mesh.cellZones().size() << nl;
} //}
void printMeshData(const polyMesh& mesh) void printMeshData(const polyMesh& mesh)
{ {
// Collect all data on master // Collect all data on master
@ -917,8 +917,8 @@ int main(int argc, char *argv[])
// Mesh distribution engine // Mesh distribution engine
fvMeshDistribute distributor(mesh, tolDim); fvMeshDistribute distributor(mesh, tolDim);
Pout<< "Wanted distribution:" //Pout<< "Wanted distribution:"
<< distributor.countCells(finalDecomp) << nl << endl; // << distributor.countCells(finalDecomp) << nl << endl;
// Do actual sending/receiving of mesh // Do actual sending/receiving of mesh
autoPtr<mapDistributePolyMesh> map = distributor.distribute(finalDecomp); autoPtr<mapDistributePolyMesh> map = distributor.distribute(finalDecomp);
@ -988,7 +988,7 @@ int main(int argc, char *argv[])
Info<< endl; Info<< endl;
Pout<< "End\n" << endl; Info<< "End\n" << endl;
return 0; return 0;
} }