Watches for presence of the named file in the $FOAM_CASE directory and aborts the calculation if it is present. More...
Public Types | |
enum | actionType { noWriteNow, writeNow, nextWrite } |
Enumeration defining the type of action. More... | |
Public Member Functions | |
TypeName ("abort") | |
Runtime type information. More... | |
abort (const word &name, const Time &runTime, const dictionary &) | |
Construct from Time and dictionary. More... | |
virtual | ~abort () |
Destructor. More... | |
virtual bool | read (const dictionary &) |
Read the dictionary settings. More... | |
virtual bool | execute () |
Execute, check existence of abort file and take action. More... | |
virtual bool | write () |
Execute, check existence of abort file and take action. More... | |
virtual bool | end () |
Execute at the final time-loop, used for cleanup. More... | |
Public Member Functions inherited from functionObject | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
virtual | ~functionObject () |
Destructor. More... | |
const word & | name () const |
Return the name of this functionObject. More... | |
virtual bool | adjustTimeStep () |
Called at the end of Time::adjustDeltaT() if adjustTime is true. More... | |
virtual void | updateMesh (const mapPolyMesh &mpm) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &mesh) |
Update for changes of mesh. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from functionObject | |
static autoPtr< functionObject > | New (const word &name, const Time &, const dictionary &) |
Select from dictionary, based on its "type" entry. More... | |
Public Attributes inherited from functionObject | |
Switch | log |
Switch write log to Info. More... | |
Static Public Attributes inherited from functionObject | |
static int | debug |
static bool | postProcess |
Global post-processing mode switch. More... | |
Watches for presence of the named file in the $FOAM_CASE directory and aborts the calculation if it is present.
Currently the following action types are supported:
enum actionType |
abort | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 88 of file abort.C.
References Foam::read().
TypeName | ( | "abort" | ) |
Runtime type information.
|
virtual |
Read the dictionary settings.
Reimplemented from functionObject.
Definition at line 115 of file abort.C.
References dictionary::found(), dictionary::lookup(), and dictionary::readIfPresent().
|
virtual |
Execute, check existence of abort file and take action.
Implements functionObject.
Definition at line 135 of file abort.C.
References Foam::endl(), Foam::Info, Foam::isFile(), Foam::reduce(), Time::saNextWrite, Time::saNoWriteNow, and Time::saWriteNow.
|
virtual |
Execute, check existence of abort file and take action.
Implements functionObject.
|
virtual |
Execute at the final time-loop, used for cleanup.
Reimplemented from functionObject.