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

Detailed Description

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

Source files

Source files

Definition at line 53 of file sigStopAtWriteNow.H.

Constructor & Destructor Documentation

◆ sigStopAtWriteNow() [1/4]

Construct null.

Definition at line 112 of file sigStopAtWriteNow.C.

◆ sigStopAtWriteNow() [2/4]

sigStopAtWriteNow ( const Time runTime,
bool  verbose = false 
)

Construct from components.

Definition at line 116 of file sigStopAtWriteNow.C.

References runTime, runTimePtr_, and Foam::BitOps::set().

Here is the call graph for this function:

◆ ~sigStopAtWriteNow() [1/2]

Destructor.

Definition at line 125 of file sigStopAtWriteNow.C.

References Foam::resetHandler().

Here is the call graph for this function:

◆ sigStopAtWriteNow() [3/4]

Construct null.

◆ sigStopAtWriteNow() [4/4]

sigStopAtWriteNow ( const Time runTime,
bool  verbose = false 
)

Construct from components.

◆ ~sigStopAtWriteNow() [2/2]

Destructor.

Member Function Documentation

◆ active() [1/2]

bool active ( )
static

Is active?

Definition at line 138 of file sigStopAtWriteNow.C.

◆ signalNumber() [1/2]

int signalNumber ( )
static

Signal number being used.

Definition at line 144 of file sigStopAtWriteNow.C.

◆ set() [1/2]

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

Referenced by addstopAtWriteNowSignalToOpt::readData().

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

◆ active() [2/2]

static bool active ( )
static

Is active?

◆ signalNumber() [2/2]

static int signalNumber ( )
static

Signal number being used.

◆ set() [2/2]

static void set ( bool  verbose = false)
static

Set/reset signal handler.

Friends And Related Function Documentation

◆ addstopAtWriteNowSignalToOpt

Allow setter access to signal_.

Definition at line 70 of file sigStopAtWriteNow.H.


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