Public Member Functions | Static Public Member Functions | Friends | List of all members
sigStopAtWriteNow Class Reference

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...
 

Detailed Description

Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal.

Source files

Definition at line 49 of file sigStopAtWriteNow.H.

Constructor & Destructor Documentation

◆ sigStopAtWriteNow() [1/2]

Construct null.

Definition at line 107 of file sigStopAtWriteNow.C.

◆ sigStopAtWriteNow() [2/2]

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().

Here is the call graph for this function:

Member Function Documentation

◆ active()

bool active ( )
static

Is active?

Definition at line 133 of file sigStopAtWriteNow.C.

◆ signalNumber()

int signalNumber ( )
static

Signal number being used.

Definition at line 139 of file sigStopAtWriteNow.C.

◆ set()

void set ( bool  verbose = false)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ addstopAtWriteNowSignalToOpt

friend class addstopAtWriteNowSignalToOpt
friend

Allow setter access to signal_.

Definition at line 72 of file sigStopAtWriteNow.H.


The documentation for this class was generated from the following files: