MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / pointZoneSet

Function pointZoneSet

src/meshTools/sets/topoSets/pointZoneSet.C:248–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248bool pointZoneSet::writeObject
249(
250 IOstream::streamFormat s,
251 IOstream::versionNumber v,
252 IOstream::compressionType c,
253 const bool valid
254) const
255{
256 // Write shadow pointSet
257 word oldTypeName = typeName;
258 const_cast<word&>(type()) = pointSet::typeName;
259 bool ok = pointSet::writeObject(s, v, c, valid);
260 const_cast<word&>(type()) = oldTypeName;
261
262 // Modify pointZone
263 pointZoneMesh& pointZones = const_cast<polyMesh&>(mesh_).pointZones();
264 label zoneID = pointZones.findZoneID(name());
265
266 if (zoneID == -1)
267 {
268 zoneID = pointZones.size();
269
270 pointZones.setSize(zoneID+1);
271 pointZones.set
272 (
273 zoneID,
274 new pointZone
275 (
276 name(),
277 addressing_,
278 zoneID,
279 pointZones
280 )
281 );
282 }
283 else
284 {
285 pointZones[zoneID] = addressing_;
286 }
287 pointZones.clearAddressing();
288
289 return ok && pointZones.write(valid);
290}
291
292
293void pointZoneSet::updateMesh(const mapPolyMesh& morphMap)

Callers 1

pointZoneSet.CFile · 0.70

Calls 9

writeObjectFunction · 0.70
writeDebugFunction · 0.70
typeEnum · 0.50
nameFunction · 0.50
pointZoneClass · 0.50
sizeMethod · 0.45
setSizeMethod · 0.45
setMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected