43 points_.writeOpt(wOpt);
44 points_.instance() = inst;
46 faces_.writeOpt(wOpt);
47 faces_.instance() = inst;
49 owner_.writeOpt(wOpt);
50 owner_.instance() = inst;
52 neighbour_.writeOpt(wOpt);
53 neighbour_.instance() = inst;
55 boundary_.writeOpt(wOpt);
56 boundary_.instance() = inst;
58 pointZones_.writeOpt(wOpt);
59 pointZones_.instance() = inst;
61 faceZones_.writeOpt(wOpt);
62 faceZones_.instance() = inst;
64 cellZones_.writeOpt(wOpt);
65 cellZones_.instance() = inst;
69 tetBasePtIsPtr_->writeOpt(wOpt);
70 tetBasePtIsPtr_->instance() = inst;
87 <<
" new = " << facesInst <<
nl
89 <<
" new = " << pointsInst <<
endl;
105 points_.instance() = pointsInst;
180 bool boundaryChanged =
false;
182 if (newBoundary.size() != boundary_.size())
184 boundaryChanged =
true;
198 oldTypes[patchi] != newTypes[patchi]
199 || oldNames[patchi] != newNames[patchi]
202 boundaryChanged =
true;
211 <<
"Number of patches has changed. This may have "
212 <<
"unexpected consequences. Proceed with care." <<
endl;
215 boundary_.
setSize(newBoundary.size());
217 forAll(newBoundary, patchi)
219 boundary_.
set(patchi, newBoundary[patchi].
clone(boundary_));
228 newBoundary[patchi].
name(),
229 newBoundary[patchi].
size(),
230 newBoundary[patchi].start(),
233 newBoundary[patchi].physicalType(),
234 newBoundary[patchi].inGroups()
276 boundary_.calcGeometry();
299 label oldSize = pointZones_.size();
301 if (newPointZones.size() <= pointZones_.size())
303 pointZones_.setSize(newPointZones.size());
309 pointZones_[czI] = newPointZones[czI];
313 pointZones_.setSize(newPointZones.size());
315 for (label czI = oldSize; czI < newPointZones.size(); czI++)
317 pointZones_.set(czI, newPointZones[czI].
clone(pointZones_));
336 oldSize = faceZones_.size();
338 if (newFaceZones.size() <= faceZones_.size())
340 faceZones_.setSize(newFaceZones.size());
346 faceZones_[fzI].resetAddressing
349 newFaceZones[fzI].flipMap()
354 faceZones_.setSize(newFaceZones.size());
356 for (label fzI = oldSize; fzI < newFaceZones.size(); fzI++)
358 faceZones_.set(fzI, newFaceZones[fzI].
clone(faceZones_));
377 oldSize = cellZones_.size();
379 if (newCellZones.size() <= cellZones_.size())
381 cellZones_.setSize(newCellZones.size());
387 cellZones_[czI] = newCellZones[czI];
391 cellZones_.setSize(newCellZones.size());
393 for (label czI = oldSize; czI < newCellZones.size(); czI++)
395 cellZones_.set(czI, newCellZones[czI].
clone(cellZones_));
399 tetBasePtIsPtr_ = readTetBasePtIs();