60 Foam::abortCalculation::actionTypeNames_;
65 void Foam::abortCalculation::removeFile()
const 67 bool hasAbort =
isFile(abortFile_);
80 Foam::abortCalculation::abortCalculation
85 const bool loadFromFiles
90 abortFile_(
"$FOAM_CASE/" + name),
111 if (dict.
found(
"action"))
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" 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 ~abortCalculation()
Destructor.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool rm(const fileName &)
Remove a file, returning true if successful otherwise false.
virtual void end()
Execute at the final time-loop, used for cleanup.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Initialise the NamedEnum HashTable from the static list of names.
virtual void read(const dictionary &)
Read the dictionary settings.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Registry of regIOobjects.
actionType
Enumeration defining the type of action.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
static bool master(const label communicator=0)
Am I the master process.
bool read(const char *, int32_t &)
virtual void execute()
Execute, check existence of abort file and take action.
bool isFile(const fileName &, const bool checkGzip=true)
Does the name exist as a FILE in the file system?
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
defineTypeNameAndDebug(combustionModel, 0)
virtual void write()
Execute, check existence of abort file and take action.