sigWriteNow Class Reference

Signal handler to write once and continue. The interrupt is defined by OptimisationSwitches::writeNowSignal. More...

Public Member Functions

 sigWriteNow ()
 Construct null. More...
 
 sigWriteNow (Time &runTime, bool verbose=false)
 Construct from components. More...
 
 ~sigWriteNow ()
 Destructor. More...
 
 sigWriteNow ()
 Construct null. More...
 
 sigWriteNow (Time &runTime, bool verbose=false)
 Construct from components. More...
 
 ~sigWriteNow ()
 Destructor. More...
 

Static Public Member Functions

static bool active ()
 Is active? More...
 
static int signalNumber ()
 The 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 ()
 The signal number being used. More...
 
static void set (bool verbose=false)
 Set/reset signal handler. More...
 

Friends

class addwriteNowSignalToOpt
 Allow setter access to signal_. More...
 

Detailed Description

Signal handler to write once and continue. The interrupt is defined by OptimisationSwitches::writeNowSignal.

Source files

Source files

Definition at line 53 of file sigWriteNow.H.

Constructor & Destructor Documentation

◆ sigWriteNow() [1/4]

Construct null.

Definition at line 104 of file sigWriteNow.C.

◆ sigWriteNow() [2/4]

sigWriteNow ( Time runTime,
bool  verbose = false 
)

Construct from components.

Definition at line 108 of file sigWriteNow.C.

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

Here is the call graph for this function:

◆ ~sigWriteNow() [1/2]

Destructor.

Definition at line 117 of file sigWriteNow.C.

References Foam::resetHandler().

Here is the call graph for this function:

◆ sigWriteNow() [3/4]

Construct null.

◆ sigWriteNow() [4/4]

sigWriteNow ( Time runTime,
bool  verbose = false 
)

Construct from components.

◆ ~sigWriteNow() [2/2]

Destructor.

Member Function Documentation

◆ active() [1/2]

bool active ( )
static

Is active?

Definition at line 130 of file sigWriteNow.C.

◆ signalNumber() [1/2]

int signalNumber ( )
static

The signal number being used.

Definition at line 136 of file sigWriteNow.C.

Referenced by sigStopAtWriteNow::set().

Here is the caller graph for this function:

◆ set() [1/2]

void set ( bool  verbose = false)
static

Set/reset signal handler.

Definition at line 142 of file sigWriteNow.C.

References Foam::Info, Foam::nl, and Foam::setHandler().

Referenced by addwriteNowSignalToOpt::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

The signal number being used.

◆ set() [2/2]

static void set ( bool  verbose = false)
static

Set/reset signal handler.

Friends And Related Function Documentation

◆ addwriteNowSignalToOpt

Allow setter access to signal_.

Definition at line 70 of file sigWriteNow.H.


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