Signal handler for interupt defined by OptimisationSwitches::stopAtWriteNowSignal. More...

Public Member Functions

 sigStopAtWriteNow ()
 Construct null. More...
 
 sigStopAtWriteNow (const bool verbose, const Time &runTime)
 Construct from components. More...
 
 ~sigStopAtWriteNow ()
 Destructor. More...
 
bool active () const
 Is active? More...
 

Static Public Member Functions

static void set (const bool verbose)
 (re)set signal catcher More...
 

Friends

class addstopAtWriteNowSignalToOpt
 wip. Have setter have access to signal_ More...
 

Detailed Description

Signal handler for interupt defined by OptimisationSwitches::stopAtWriteNowSignal.

Write and stop the job.

Source files

Definition at line 53 of file sigStopAtWriteNow.H.

Constructor & Destructor Documentation

Construct null.

Definition at line 105 of file sigStopAtWriteNow.C.

sigStopAtWriteNow ( const bool  verbose,
const Time runTime 
)

Construct from components.

Definition at line 109 of file sigStopAtWriteNow.C.

Destructor.

Definition at line 123 of file sigStopAtWriteNow.C.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

Member Function Documentation

void set ( const bool  verbose)
static

(re)set signal catcher

Definition at line 142 of file sigStopAtWriteNow.C.

References Foam::abort(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::findEtcFile(), and Foam::Info.

Referenced by addstopAtWriteNowSignalToOpt::readData().

Here is the call graph for this function:

Here is the caller graph for this function:

bool active ( ) const

Is active?

Definition at line 185 of file sigStopAtWriteNow.C.

Friends And Related Function Documentation

friend class addstopAtWriteNowSignalToOpt
friend

wip. Have setter have access to signal_

Definition at line 71 of file sigStopAtWriteNow.H.


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