42 const word& stopInstance
80 for (instanceI = ts.
size()-1; instanceI >= 0; --instanceI)
82 if (ts[instanceI].value() <= timeOutputValue())
89 for (; instanceI >= 0; --instanceI)
105 <<
"Found \"" << name
106 <<
"\" in " << ts[instanceI].name()/dir
110 return ts[instanceI].name();
114 if (ts[instanceI].
name() == stopInstance)
119 <<
"Hit stopInstance " << stopInstance
125 rOpt == IOobject::MUST_READ
126 || rOpt == IOobject::MUST_READ_IF_MODIFIED
132 <<
"Cannot find directory " 133 << dir <<
" in times " <<
timeName()
134 <<
" down to " << stopInstance
140 <<
"Cannot find file \"" << name <<
"\" in directory " 141 << dir <<
" in times " <<
timeName()
142 <<
" down to " << stopInstance
147 return ts[instanceI].name();
172 <<
"Found \"" << name
180 if (rOpt == IOobject::MUST_READ || rOpt == IOobject::MUST_READ_IF_MODIFIED)
183 <<
"Cannot find file \"" << name <<
"\" in directory " 184 << dir <<
" in times " <<
timeName()
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
bool isFile(const fileName &, const bool checkGzip=true)
Does the name exist as a FILE in the file system?
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
readOption
Enumeration defining the read options.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
Return the location of "dir" containing the file "name".
A class for handling words, derived from string.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
word name(const complex &)
Return a string representation of a complex.
Constant dispersed-phase particle diameter model.
bool headerOk()
Read and check header info.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
#define InfoInFunction
Report an information message using Foam::Info.