90 const faceZone& fz = faceZones[zoneID];
126 faceSet(mesh, name,
set.size(), w),
128 addressing_(refCast<const faceZoneSet>(
set).addressing()),
129 flipMap_(refCast<const faceZoneSet>(
set).flipMap())
147 for (label faceI = 0; faceI < maxLen; faceI++)
151 addressing_[n] = faceI;
172 faceToIndex.insert(addressing_[i], i);
175 const faceZoneSet& fSet = refCast<const faceZoneSet>(
set);
183 if (iter != faceToIndex.
end())
185 label index = iter();
187 if (fSet.
flipMap()[i] != flipMap_[index])
191 newAddressing.append(faceI);
192 newFlipMap.append(flipMap_[index]);
198 WarningIn(
" faceZoneSet::subset(const topoSet&)")
199 <<
"subset : there are " << nConflict
200 <<
" faces with different orientation in faceZonesSets "
201 <<
name() <<
" and " <<
set.name() <<
endl;
204 addressing_.
transfer(newAddressing);
220 faceToIndex.insert(addressing_[i], i);
223 const faceZoneSet& fSet = refCast<const faceZoneSet>(
set);
231 if (iter != faceToIndex.
end())
233 label index = iter();
235 if (fSet.
flipMap()[i] != flipMap_[index])
242 newAddressing.
append(faceI);
249 WarningIn(
"faceZoneSet::addSet(const topoSet&)")
250 <<
"addSet : there are " << nConflict
251 <<
" faces with different orientation in faceZonesSets "
252 <<
name() <<
" and " <<
set.name() <<
endl;
255 addressing_.
transfer(newAddressing);
268 const faceZoneSet& fSet = refCast<const faceZoneSet>(
set);
271 forAll(fSet.addressing(), i)
273 faceToIndex.insert(fSet.addressing()[i], i);
278 label faceI = addressing_[i];
282 if (iter != faceToIndex.
end())
284 label index = iter();
286 if (fSet.flipMap()[index] != flipMap_[i])
294 newAddressing.append(faceI);
295 newFlipMap.append(fSet.flipMap()[i]);
301 WarningIn(
"faceZoneSet::deleteSet(const topoSet&)")
302 <<
"deleteSet : there are " << nConflict
303 <<
" faces with different orientation in faceZonesSets "
304 <<
name() <<
" and " <<
set.name() <<
endl;
307 addressing_.
transfer(newAddressing);
332 word oldTypeName = typeName;
333 const_cast<word&
>(
type()) = faceSet::typeName;
335 const_cast<word&
>(
type()) = oldTypeName;
343 zoneID = faceZones.
size();
361 faceZones[zoneID].resetAddressing(addressing_, flipMap_);
365 return ok && faceZones.
write();
378 label faceI = addressing_[i];
382 newAddressing[n] = newFaceI;
383 newFlipMap[n] = flipMap_[i];
388 newFlipMap.setSize(n);
390 addressing_.
transfer(newAddressing);