34 namespace functionObjects
70 action_(actionType::nextWrite),
85 if (dict.
found(
"action"))
87 action_ = actionTypeNames_.read(dict.
lookup(
"action"));
91 action_ = actionType::nextWrite;
102 bool stopCondition = condition();
109 case actionType::noWriteNow :
115 <<
"): stopping now without writing" 121 case actionType::writeNow :
127 <<
"): stopping now after writing" 133 case actionType::nextWrite :
139 <<
"): stopping after next write" actionType
Enumeration defining the type of action.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual bool end()
Execute at the final time-loop, used for cleanup.
virtual bool read(const dictionary &)
Read the dictionary settings.
A list of keyword definitions, which are a keyword followed by any number of values (e...
set endTime to stop immediately w/ writing
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~stopAt()
Destructor.
Abstract base-class for Time/database functionObjects.
Initialise the NamedEnum HashTable from the static list of names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
static const NamedEnum< actionType, 3 > actionTypeNames_
Action type names.
A class for handling words, derived from string.
set endTime to stop immediately w/o writing
virtual bool write()
Execute, check existence of stopAt file and take action.
virtual bool execute()
Execute, check existence of stopAt file and take action.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
defineTypeNameAndDebug(Qdot, 0)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
stopAt(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
stop the next time data are written
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.