cellZone, faceZone, pointZone: Removed internal index

Zones are now completely dynamic, i.e. the number of zones of each type can
change during the run, e.g. by run-time mesh-to-mesh mapping onto meshes with
different zones used to control mesh motion.  This means that the index of each
zone may change during the run and so it better that the zones do not cache
their own index but it is looked-up from the zone list using findIndex when
required.
This commit is contained in:
Henry Weller
2024-01-31 14:58:43 +00:00
parent a3e38977c6
commit 6d05a6c425
39 changed files with 96 additions and 211 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -181,7 +181,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
(
"dummyPointZone",
labelList(0),
0,
dummyMesh.pointZones()
)
);
@ -193,7 +192,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
"dummyFaceZone",
labelList(0),
boolList(0),
0,
dummyMesh.faceZones()
)
);
@ -204,7 +202,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
(
"dummyCellZone",
labelList(0),
0,
dummyMesh.cellZones()
)
);
@ -296,7 +293,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
(
pointZoneNames[i],
labelList(0),
i,
mesh.pointZones()
);
}
@ -308,7 +304,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
faceZoneNames[i],
labelList(0),
boolList(0),
i,
mesh.faceZones()
);
}
@ -319,7 +314,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
(
cellZoneNames[i],
labelList(0),
i,
mesh.cellZones()
);
}