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());
130 IOobject rio(
io, IOobjectOption::NO_REGISTER);
131 if (rio.
readOpt() == IOobjectOption::READ_MODIFIED)
133 rio.
readOpt(IOobjectOption::MUST_READ);
139 GlobalIOField<Type> reader(rio);
158 os << static_cast<const Field<Type>&>(*this);
virtual bool readData(Istream &is)
The readData method for regIOobject read operation.
readOption readOpt() const noexcept
Get the read option.
patchWriters resize(patchIds.size())
static Field< Type > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
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.
bool globalObject() const noexcept
True if object is treated the same for all processors.
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...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...