Go to the documentation of this file.
85 const bool loadFromFiles
90 abortFile_(
"$FOAM_CASE/" +
name),
113 action_ = actionTypeNames_.read(
dict.
lookup(
"action"));
129 bool hasAbort =
isFile(abortFile_);
140 Info<<
"USER REQUESTED ABORT (timeIndex="
141 << obr_.time().timeIndex()
142 <<
"): stop without writing data"
152 Info<<
"USER REQUESTED ABORT (timeIndex="
153 << obr_.time().timeIndex()
154 <<
"): stop+write data"
164 Info<<
"USER REQUESTED ABORT (timeIndex="
165 << obr_.time().timeIndex()
166 <<
"): stop after next data write"
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from string.
virtual void read(const dictionary &)
Read the dictionary settings.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool rm(const fileName &)
Remove a file, returning true if successful otherwise false.
bool read(const char *, int32_t &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
abortCalculation(const abortCalculation &)
Disallow default bitwise copy construct.
virtual ~abortCalculation()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void execute()
Execute, check existence of abort file and take action.
Registry of regIOobjects.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void write()
Execute, check existence of abort file and take action.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static const NamedEnum< actionType, 3 > actionTypeNames_
Action type names.
bool isFile(const fileName &, const bool checkGzip=true)
Does the name exist as a FILE in the file system?
static bool master(const label communicator=0)
Am I the master process.
void removeFile() const
Remove abort file.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual void end()
Execute at the final time-loop, used for cleanup.
actionType
Enumeration defining the type of action.
fileName abortFile_
The fully-qualified name of the abort file.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
Initialise the NamedEnum HashTable from the static list of names.