diff --git a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C index 9a4f62bded..defbca4c69 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C +++ b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C @@ -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