mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
blockMesh: Removed the superfluous cellSet creation and write
Resolves bug-report https://bugs.openfoam.org/view.php?id=2960
This commit is contained in:
@ -57,7 +57,6 @@ Usage
|
|||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
#include "emptyPolyPatch.H"
|
#include "emptyPolyPatch.H"
|
||||||
#include "cyclicPolyPatch.H"
|
#include "cyclicPolyPatch.H"
|
||||||
#include "cellSet.H"
|
|
||||||
|
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
#include "OSspecific.H"
|
#include "OSspecific.H"
|
||||||
@ -354,8 +353,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
List<cellZone*> cz(zoneMap.size());
|
List<cellZone*> cz(zoneMap.size());
|
||||||
|
|
||||||
Info<< nl << "Writing cell zones as cellSets" << endl;
|
|
||||||
|
|
||||||
forAllConstIter(HashTable<label>, zoneMap, iter)
|
forAllConstIter(HashTable<label>, zoneMap, iter)
|
||||||
{
|
{
|
||||||
label zoneI = iter();
|
label zoneI = iter();
|
||||||
@ -367,10 +364,6 @@ int main(int argc, char *argv[])
|
|||||||
zoneI,
|
zoneI,
|
||||||
mesh.cellZones()
|
mesh.cellZones()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Write as cellSet for ease of processing
|
|
||||||
cellSet cset(mesh, iter.key(), zoneCells[zoneI].shrink());
|
|
||||||
cset.write();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.pointZones().setSize(0);
|
mesh.pointZones().setSize(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user