53 Allocator::setWriteOption(wOpt);
54 surfZones_.writeOpt(wOpt);
63 fileName pointsInst(time().findInstance(meshDir(),
"points"));
64 fileName facesInst(time().findInstance(meshDir(),
"faces"));
67 <<
"Points instance: old = " << pointsInstance()
68 <<
" new = " << pointsInst <<
nl 69 <<
"Faces instance: old = " << facesInstance()
70 <<
" new = " << facesInst <<
endl;
72 if (facesInst != facesInstance())
76 <<
"Topological change" <<
endl;
82 setInstance(facesInst);
83 storedIOPoints().instance() = pointsInst;
129 bool zonesChanged =
false;
131 if (surfZones_.size() != newZones.size())
139 if (surfZones_[zoneI].
name() != newZones[zoneI].
name())
147 surfZones_.transfer(newZones);
152 <<
"Unexpected consequences. Proceed with care." <<
endl;
161 else if (pointsInst != pointsInstance())
167 storedIOPoints().instance() = pointsInst;
196 IOstreamOption streamOpt,
197 const bool writeOnProc
200 bool ok = Allocator::writeObject(streamOpt, writeOnProc);
204 surfZones_.writeObject(streamOpt, writeOnProc);
writeOption
Enumeration defining write preferences.
A class for handling file names.
readUpdateState
Enumeration defining the state of the mesh after a read update.
vectorIOField pointIOField
pointIOField is a vectorIOField.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
void setInstance(const fileName &inst)
Set the instance for mesh files.
virtual readUpdateState readUpdate()
Update mesh based on the files saved in time directories.
#define forAll(list, i)
Loop across all elements in list.
CompactIOList< face, label > faceCompactIOList
Compact IO for a List of face.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define DebugInFunction
Report an information message using Foam::Info.
IOobject for a surfZoneList.
#define DebugInfo
Report an information message using Foam::Info.
const fileName & instance() const noexcept
Read access to instance path component.
void setInstance(const fileName &inst, IOobjectOption::writeOption wOpt=IOobjectOption::AUTO_WRITE)
Set the instance for mesh files.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write all components using given format, version and compression.
Reading is optional [identical to READ_IF_PRESENT].
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)
void setWriteOption(IOobjectOption::writeOption wOpt)
Adjust the write option for all components.