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... | |
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... | |
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 49 of file sigStopAtWriteNow.H.
Construct null.
Definition at line 107 of file sigStopAtWriteNow.C.
sigStopAtWriteNow | ( | const Time & | runTime, |
bool | verbose = false |
||
) |
Construct from components.
Definition at line 111 of file sigStopAtWriteNow.C.
References runTime, and runTimePtr_.
~sigStopAtWriteNow | ( | ) |
Destructor.
Definition at line 120 of file sigStopAtWriteNow.C.
References Foam::resetHandler().
|
static |
Is active?
Definition at line 133 of file sigStopAtWriteNow.C.
|
static |
Signal number being used.
Definition at line 139 of file sigStopAtWriteNow.C.
|
static |
Set/reset signal handler.
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 |
Allow setter access to signal_.
Definition at line 72 of file sigStopAtWriteNow.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.