39 warnNoRereading<GlobalIOField<Type>>();
41 readHeaderOk(IOstreamOption::BINARY, typeName);
51 warnNoRereading<GlobalIOField<Type>>();
53 if (!readHeaderOk(IOstreamOption::BINARY, typeName))
64 const UList<Type>& content
70 warnNoRereading<GlobalIOField<Type>>();
72 if (!readHeaderOk(IOstreamOption::BINARY, typeName))
89 warnNoRereading<GlobalIOField<Type>>();
91 Field<Type>::transfer(content);
93 readHeaderOk(IOstreamOption::BINARY, typeName);
107 warnNoRereading<GlobalIOField<Type>>();
109 const bool reuse = tfld.movable();
116 if (!readHeaderOk(IOstreamOption::BINARY, typeName) && !reuse)
118 Field<Type>::operator=(tfld());
virtual bool readData(Istream &is)
The readData method for regIOobject read operation.
patchWriters resize(patchIds.size())
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Generic templated field type.
IOField with global data (so optionally read from master)
void operator=(const GlobalIOField< Type > &rhs)
Copy assignment of entries.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
GlobalIOField(const GlobalIOField &)=default
Default copy construct.
bool good() const noexcept
True if next operation might succeed.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...