Go to the documentation of this file.
43 int Foam::sigStopAtWriteNow::signal_
74 is >> sigStopAtWriteNow::signal_;
80 os << sigStopAtWriteNow::signal_;
86 "stopAtWriteNowSignal"
94 void Foam::sigStopAtWriteNow::sigHandler(
int)
102 Info<<
"sigStopAtWriteNow :"
103 <<
" setting up write and stop at end of the next iteration"
162 <<
"stopAtWriteNowSignal : " << signal_
163 <<
" cannot be the same as the writeNowSignal."
164 <<
" Please change this in the etc/controlDict."
170 Info<<
"sigStopAtWriteNow :"
171 <<
" Enabling writing and stopping upon signal " << signal_
175 setHandler(
"stopAtWriteNow", signal_, sigHandler);
int debug
Static debugging option.
static void set(bool verbose=false)
Set/reset signal handler.
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.
static Foam::Time const * runTimePtr_
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,...
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.