polyTopoChange::modifyCell: Replaced by direct specification of the cell zone
This commit is contained in:
@ -1257,23 +1257,6 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
}
|
||||
|
||||
// Modify cells to be in zones as required
|
||||
forAll(cellZoneIDs, cellZonei)
|
||||
{
|
||||
label cgi = cellZoneIDs[cellZonei];
|
||||
|
||||
for
|
||||
(
|
||||
label celli = cellGroupStartIndex[cgi];
|
||||
celli <= cellGroupEndIndex[cgi];
|
||||
celli++
|
||||
)
|
||||
{
|
||||
meshMod.modifyCell(celli, cellZonei);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool doneWarning = false;
|
||||
|
||||
// Add faceZone faces
|
||||
@ -1462,6 +1445,21 @@ int main(int argc, char *argv[])
|
||||
polyMeshUnMergeCyclics(mesh);
|
||||
}
|
||||
|
||||
// Add the cell zones as required
|
||||
forAll(cellZoneIDs, cellZonei)
|
||||
{
|
||||
const label cgi = cellZoneIDs[cellZonei];
|
||||
|
||||
mesh.cellZones()[cellZonei].insert
|
||||
(
|
||||
identityMap
|
||||
(
|
||||
cellGroupStartIndex[cgi],
|
||||
cellGroupEndIndex[cgi] + 1 - cellGroupStartIndex[cgi]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
mesh.setInstance(runTime.constant());
|
||||
|
||||
// Set the precision of the points data to 10
|
||||
|
||||
@ -500,7 +500,7 @@ int main(int argc, char *argv[])
|
||||
forAll(patchSources, addedI)
|
||||
{
|
||||
const dictionary& dict = patchSources[addedI];
|
||||
addedPatchNames.insert(dict.lookup("name"));
|
||||
addedPatchNames.insert(dict.lookup<word>("name"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user