Go to the documentation of this file.
42 const word& stopInstance
65 Info<<
"Time::findInstance"
66 "(const fileName&, const word&"
67 ", const IOobject::readOption, const word&)"
68 <<
" : found \"" <<
name
82 for (instanceI = ts.
size()-1; instanceI >= 0; --instanceI)
84 if (ts[instanceI].value() <= timeOutputValue())
91 for (; instanceI >= 0; --instanceI)
106 Info<<
"Time::findInstance"
107 "(const fileName&, const word&"
108 ", const IOobject::readOption, const word&)"
109 <<
" : found \"" <<
name
110 <<
"\" in " << ts[instanceI].name()/dir
114 return ts[instanceI].name();
118 if (ts[instanceI].
name() == stopInstance)
122 Info<<
"Time::findInstance"
123 "(const fileName&, const word&"
124 ", const IOobject::readOption, const word&)"
125 <<
" : hit stopInstance " << stopInstance
131 rOpt == IOobject::MUST_READ
132 || rOpt == IOobject::MUST_READ_IF_MODIFIED
138 <<
"Cannot find directory "
139 << dir <<
" in times " <<
timeName()
140 <<
" down to " << stopInstance
146 <<
"Cannot find file \"" <<
name <<
"\" in directory "
147 << dir <<
" in times " <<
timeName()
148 <<
" down to " << stopInstance
153 return ts[instanceI].name();
177 Info<<
"Time::findInstance"
178 "(const fileName&, const word&"
179 ", const IOobject::readOption, const word&)"
180 <<
" : found \"" <<
name
188 if (rOpt == IOobject::MUST_READ || rOpt == IOobject::MUST_READ_IF_MODIFIED)
191 <<
"Cannot find file \"" <<
name <<
"\" in directory "
192 << dir <<
" in times " <<
timeName()
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Constant dispersed-phase particle diameter model.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool isFile(const fileName &, const bool checkGzip=true)
Does the name exist as a FILE in the file system?
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
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".
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
readOption
Enumeration defining the read options.
void size(const label)
Override size to be inconsistent with allocated storage.
word name(const complex &)
Return a string representation of a complex.