ENH: reconstructPar: pick up cellSets from current time instead of mesh time

This commit is contained in:
mattijs 2013-12-16 12:43:17 +00:00
parent b36dce79d2
commit 2dfa827af1

View File

@ -706,10 +706,17 @@ int main(int argc, char *argv[])
{
const fvMesh& procMesh = procMeshes.meshes()[procI];
// Note: look at sets in current time only or between
// mesh and current time?. For now current time. This will
// miss out on sets in intermediate times that have not
// been reconstructed.
IOobjectList objects
(
procMesh, procMesh.facesInstance(), "polyMesh/sets"
procMesh,
databases[0].timeName(), //procMesh.facesInstance()
polyMesh::meshSubDir/"sets"
);
IOobjectList cSets(objects.lookupClass(cellSet::typeName));
forAllConstIter(IOobjectList, cSets, iter)
{
@ -754,7 +761,9 @@ int main(int argc, char *argv[])
IOobjectList objects
(
procMesh, procMesh.facesInstance(), "polyMesh/sets"
procMesh,
databases[0].timeName(), //procMesh.facesInstance(),
polyMesh::meshSubDir/"sets"
);
// cellSets