ENH: Writing cellCentres to polyMesh dir and optional reading.

This commit is contained in:
graham
2010-10-14 18:02:22 +01:00
parent d0ab427bb3
commit df58543799
4 changed files with 15 additions and 11 deletions

View File

@ -96,16 +96,20 @@ int main(int argc, char *argv[])
IOobject
(
"cellCentres",
runTime.constant(),
mesh.pointsInstance(),
polyMesh::meshSubDir,
runTime,
IOobject::MUST_READ,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
)
);
Info<< "Read " << overrideCCs.size() << " cell centres" << endl;
if (overrideCCs.headerOk())
{
Info<< "Read " << overrideCCs.size() << " cell centres" << endl;
mesh.overrideCellCentres(overrideCCs);
mesh.overrideCellCentres(overrideCCs);
}
// Reconstruct globalMeshData
mesh.globalData();