39 readOpt() == IOobject::MUST_READ
40 || readOpt() == IOobject::MUST_READ_IF_MODIFIED
42 || (readOpt() == IOobject::READ_IF_PRESENT && headerOk())
45 readStream(typeName) >> *
this;
62 warnNoRereading<IOField<Type>>();
74 warnNoRereading<IOField<Type>>();
96 if (valid && haveFile)
111 warnNoRereading<IOField<Type>>();
123 warnNoRereading<IOField<Type>>();
138 warnNoRereading<IOField<Type>>();
153 warnNoRereading<IOField<Type>>();
166 const bool reuse = tfld.movable();
173 if (!readContents() && !reuse)
199 os << static_cast<const Field<Type>&>(*this);
207 os << contentRef_.cref();
virtual bool resize()
Resize the ODE solver.
static const char *const typeName
Typename for Field.
Generic templated field type.
void operator=(const Field< Type > &)
Copy assignment.
A IOField wrapper for writing external data.
IOFieldRef()=delete
No default construct.
A primitive field of type <T> with automated input and output.
void operator=(const IOField< Type > &rhs)
Copy assignment of entries.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
bool good() const noexcept
True if next operation might succeed.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
void close()
Close Istream.
Istream & readStream(const word &, const bool valid=true)
Return Istream and check object type against that given.
bool headerOk()
Read and check header info. Does not check the headerClassName.
transferModelList & transfer()
Transfer.
A class for managing temporary objects.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)