From e6416c260492b99b2fb9fd7f27e4d7659a8ae04c Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 29 Jun 2009 17:30:02 +0100 Subject: [PATCH] preserve flipmap --- .../manipulation/setsToZones/setsToZones.C | 126 ++++++++++-------- .../polyTopoChange/polyTopoChange.C | 86 ++++++------ .../polyTopoChange/polyTopoChange.H | 10 +- 3 files changed, 123 insertions(+), 99 deletions(-) diff --git a/applications/utilities/mesh/manipulation/setsToZones/setsToZones.C b/applications/utilities/mesh/manipulation/setsToZones/setsToZones.C index dcb744e801..a369a195b8 100644 --- a/applications/utilities/mesh/manipulation/setsToZones/setsToZones.C +++ b/applications/utilities/mesh/manipulation/setsToZones/setsToZones.C @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) polyMesh::meshSubDir/"sets" ); - Pout<< "Searched : " << mesh.pointsInstance()/polyMesh::meshSubDir/"sets" + Info<< "Searched : " << mesh.pointsInstance()/polyMesh::meshSubDir/"sets" << nl << "Found : " << objects.names() << nl << endl; @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) IOobjectList pointObjects(objects.lookupClass(pointSet::typeName)); - Pout<< "pointSets:" << pointObjects.names() << endl; + //Pout<< "pointSets:" << pointObjects.names() << endl; for ( @@ -126,6 +126,7 @@ int main(int argc, char *argv[]) ) ); mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE; + mesh.pointZones().instance() = mesh.facesInstance(); } else { @@ -133,57 +134,17 @@ int main(int argc, char *argv[]) << " with that of set " << set.name() << "." << endl; mesh.pointZones()[zoneID] = pointLabels; mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE; + mesh.pointZones().instance() = mesh.facesInstance(); } } - IOobjectList cellObjects(objects.lookupClass(cellSet::typeName)); - - Pout<< "cellSets:" << cellObjects.names() << endl; - - for - ( - IOobjectList::const_iterator iter = cellObjects.begin(); - iter != cellObjects.end(); - ++iter - ) - { - // Not in memory. Load it. - cellSet set(*iter()); - SortableList