45 points_.writeOpt() = wOpt;
46 points_.instance() = inst;
48 faces_.writeOpt() = wOpt;
49 faces_.instance() = inst;
51 owner_.writeOpt() = wOpt;
52 owner_.instance() = inst;
54 neighbour_.writeOpt() = wOpt;
55 neighbour_.instance() = inst;
57 boundary_.writeOpt() = wOpt;
58 boundary_.instance() = inst;
60 pointZones_.writeOpt() = wOpt;
61 pointZones_.instance() = inst;
63 faceZones_.writeOpt() = wOpt;
64 faceZones_.instance() = inst;
66 cellZones_.writeOpt() = wOpt;
67 cellZones_.instance() = inst;
69 if (tetBasePtIsPtr_.valid())
71 tetBasePtIsPtr_->writeOpt() = wOpt;
72 tetBasePtIsPtr_->instance() = inst;
92 <<
" new = " << facesInst <<
nl
94 <<
" new = " << pointsInst <<
endl;
102 Info<<
"Topological change" <<
endl;
110 points_.instance() = pointsInst;
185 bool boundaryChanged =
false;
187 if (newBoundary.size() != boundary_.size())
189 boundaryChanged =
true;
203 oldTypes[patchi] != newTypes[patchi]
204 || oldNames[patchi] != newNames[patchi]
207 boundaryChanged =
true;
216 <<
"Number of patches has changed. This may have "
217 <<
"unexpected consequences. Proceed with care." <<
endl;
220 boundary_.
setSize(newBoundary.size());
222 forAll(newBoundary, patchi)
224 boundary_.
set(patchi, newBoundary[patchi].
clone(boundary_));
233 newBoundary[patchi].
name(),
234 newBoundary[patchi].
size(),
235 newBoundary[patchi].
start(),
238 newBoundary[patchi].physicalType(),
239 newBoundary[patchi].inGroups()
281 boundary_.calcGeometry();
304 label oldSize = pointZones_.size();
306 if (newPointZones.size() <= pointZones_.size())
308 pointZones_.setSize(newPointZones.size());
314 pointZones_[czI] = newPointZones[czI];
318 pointZones_.setSize(newPointZones.size());
320 for (
label czI = oldSize; czI < newPointZones.size(); czI++)
322 pointZones_.set(czI, newPointZones[czI].
clone(pointZones_));
341 oldSize = faceZones_.size();
343 if (newFaceZones.size() <= faceZones_.size())
345 faceZones_.setSize(newFaceZones.size());
351 faceZones_[fzI].resetAddressing
354 newFaceZones[fzI].flipMap()
359 faceZones_.setSize(newFaceZones.size());
361 for (
label fzI = oldSize; fzI < newFaceZones.size(); fzI++)
363 faceZones_.set(fzI, newFaceZones[fzI].
clone(faceZones_));
382 oldSize = cellZones_.size();
384 if (newCellZones.size() <= cellZones_.size())
386 cellZones_.setSize(newCellZones.size());
392 cellZones_[czI] = newCellZones[czI];
396 cellZones_.setSize(newCellZones.size());
398 for (
label czI = oldSize; czI < newCellZones.size(); czI++)
400 cellZones_.set(czI, newCellZones[czI].
clone(cellZones_));
404 tetBasePtIsPtr_ = readTetBasePtIs();