Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal. More...
Public Member Functions | |
sigStopAtWriteNow () | |
sigStopAtWriteNow (const Time &runTime, bool verbose=false) | |
~sigStopAtWriteNow () | |
Static Public Member Functions | |
static bool | active () |
static int | signalNumber () |
static void | set (bool verbose=false) |
Friends | |
class | addstopAtWriteNowSignalToOpt |
Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal.
Definition at line 49 of file sigStopAtWriteNow.H.
Definition at line 107 of file sigStopAtWriteNow.C.
sigStopAtWriteNow | ( | const Time & | runTime, |
bool | verbose = false |
||
) |
Definition at line 111 of file sigStopAtWriteNow.C.
References runTime, runTimePtr_, and Foam::BitOps::set().
~sigStopAtWriteNow | ( | ) |
Definition at line 120 of file sigStopAtWriteNow.C.
References Foam::resetHandler().
|
static |
Definition at line 133 of file sigStopAtWriteNow.C.
|
static |
Definition at line 139 of file sigStopAtWriteNow.C.
|
static |
Definition at line 145 of file sigStopAtWriteNow.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::setHandler(), and sigWriteNow::signalNumber().
Referenced by addstopAtWriteNowSignalToOpt::readData().
|
friend |
Definition at line 66 of file sigStopAtWriteNow.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.