Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal. More...
Public Member Functions | |
sigStopAtWriteNow () | |
Construct null. More... | |
sigStopAtWriteNow (const Time &runTime, bool verbose=false) | |
Construct from components. More... | |
~sigStopAtWriteNow () | |
Destructor. More... | |
sigStopAtWriteNow () | |
Construct null. More... | |
sigStopAtWriteNow (const Time &runTime, bool verbose=false) | |
Construct from components. More... | |
~sigStopAtWriteNow () | |
Destructor. More... | |
Static Public Member Functions | |
static bool | active () |
Is active? More... | |
static int | signalNumber () |
Signal number being used. More... | |
static void | set (bool verbose=false) |
Set/reset signal handler. More... | |
static bool | active () |
Is active? More... | |
static int | signalNumber () |
Signal number being used. More... | |
static void | set (bool verbose=false) |
Set/reset signal handler. More... | |
Friends | |
class | addstopAtWriteNowSignalToOpt |
Allow setter access to signal_. More... | |
Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal.
Definition at line 53 of file sigStopAtWriteNow.H.
Construct null.
Definition at line 112 of file sigStopAtWriteNow.C.
sigStopAtWriteNow | ( | const Time & | runTime, |
bool | verbose = false |
||
) |
Construct from components.
Definition at line 116 of file sigStopAtWriteNow.C.
References runTime, and runTimePtr_.
~sigStopAtWriteNow | ( | ) |
Destructor.
Definition at line 125 of file sigStopAtWriteNow.C.
References Foam::resetHandler().
Construct null.
sigStopAtWriteNow | ( | const Time & | runTime, |
bool | verbose = false |
||
) |
Construct from components.
~sigStopAtWriteNow | ( | ) |
Destructor.
|
static |
Is active?
Definition at line 138 of file sigStopAtWriteNow.C.
|
static |
Signal number being used.
Definition at line 144 of file sigStopAtWriteNow.C.
|
static |
Set/reset signal handler.
Definition at line 150 of file sigStopAtWriteNow.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::setHandler(), and sigWriteNow::signalNumber().
|
static |
Is active?
|
static |
Signal number being used.
|
static |
Set/reset signal handler.
|
friend |
Allow setter access to signal_.
Definition at line 70 of file sigStopAtWriteNow.H.