Go to the documentation of this file.
43 int Foam::sigStopAtWriteNow::signal_
57 class addstopAtWriteNowSignalToOpt
76 is >> sigStopAtWriteNow::signal_;
82 os << sigStopAtWriteNow::signal_;
88 "stopAtWriteNowSignal"
96 void Foam::sigStopAtWriteNow::sigHandler(
int)
104 Info<<
"sigStopAtWriteNow :"
105 <<
" setting up write and stop at end of the next iteration"
163 <<
"stopAtWriteNowSignal : " << signal_
164 <<
" cannot be the same as the writeNowSignal."
165 <<
" Please change this in the etc/controlDict."
171 Info<<
"sigStopAtWriteNow :"
172 <<
" Enabling writing and stopping upon signal " << signal_
176 setHandler(
"stopAtWriteNow", signal_, sigHandler);
int debug
Static debugging option.
static void set(bool verbose=false)
Set/reset signal handler.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool active()
Is active?
static void resetHandler(const char *what, int sigNum)
addstopAtWriteNowSignalToOpt addstopAtWriteNowSignalToOpt_("stopAtWriteNowSignal")
~sigStopAtWriteNow()
Destructor.
virtual ~addstopAtWriteNowSignalToOpt()=default
virtual stopAtControls stopAt() const
Return the stop control information.
void operator=(const addstopAtWriteNowSignalToOpt &)=delete
Ostream & endl(Ostream &os)
Add newline and flush stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
File-local code for setting/resetting signal handlers.
int optimisationSwitch(const char *name, const int deflt=0)
Lookup optimisation switch or add default value.
static int signalNumber()
The signal number being used.
sigStopAtWriteNow()
Construct null.
virtual void readData(Foam::Istream &is)
Read.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static int signalNumber()
Signal number being used.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static void setHandler(const char *what, int sigNum, void(*handler)(int))
adjust endTime to stop immediately w/ writing
addstopAtWriteNowSignalToOpt(const char *name)
addstopAtWriteNowSignalToOpt(const addstopAtWriteNowSignalToOpt &)=delete
virtual void writeData(Foam::Ostream &os) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static Foam::Time const * runTimePtr_
void signalEnd() const
Update job info and relocate the file from running to finished.
void addOptimisationObject(const char *name, simpleRegIOobject *obj)
Register optimisation switch read/write object.
Abstract base class for registered object with I/O. Used in debug symbol registration.