Go to the documentation of this file.
43 Allocator::setInstance(inst);
44 surfZones_.instance() = inst;
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;
200 bool ok = Allocator::writeObject(streamOpt, valid);
204 surfZones_.writeObject(streamOpt, valid);
readUpdateState
Enumeration defining the state of the mesh after a read update.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write all components using given format, version and compression.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
writeOption
Enumeration defining the write options.
IOobject for a surfZoneList.
virtual readUpdateState readUpdate()
Update mesh based on the files saved in time directories.
vectorIOField pointIOField
pointIOField is a vectorIOField.
writeOption writeOpt() const
The write option.
#define DebugInFunction
Report an information message using Foam::Info.
word name(const complex &c)
Return string representation of complex.
void setInstance(const fileName &inst, IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
The IOstreamOption is a simple container for options an IOstream can normally have.
void setWriteOption(IOobject::writeOption wOpt)
Adjust the write option for all components.
#define DebugInfo
Report an information message using Foam::Info.
CompactIOList< face, label > faceCompactIOList
#define WarningInFunction
Report a warning using Foam::Warning.
void setWriteOption(IOobject::writeOption wOpt)
Adjust the write option for all components.