43int Foam::sigStopAtWriteNow::signal_
74 is >> sigStopAtWriteNow::signal_;
80 os << sigStopAtWriteNow::signal_;
86 "stopAtWriteNowSignal"
94void 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);
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static Foam::Time const * runTimePtr_
File-local code for setting/resetting signal handlers.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static void shutdown()
Simple shutdown (finalize) of JobInfo.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
@ saWriteNow
adjust endTime to stop immediately w/ writing
virtual stopAtControls stopAt() const
Return the stop control information.
static bool active()
Is active?
sigStopAtWriteNow()
Construct null.
static int signalNumber()
Signal number being used.
~sigStopAtWriteNow()
Destructor.
static int signalNumber()
The signal number being used.
Abstract base class for registered object with I/O. Used in debug symbol registration.
bool set() const
Are all the vector set.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
int optimisationSwitch(const char *name, const int deflt=0)
Lookup optimisation switch or add default value.
static void setHandler(const char *what, int sigNum, void(*handler)(int))
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
addstopAtWriteNowSignalToOpt addstopAtWriteNowSignalToOpt_("stopAtWriteNowSignal")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static void resetHandler(const char *what, int sigNum)
constexpr char nl
The newline '\n' character (0x0a)
void operator=(const addstopAtWriteNowSignalToOpt &)=delete
addstopAtWriteNowSignalToOpt(const char *name)
virtual void readData(Foam::Istream &is)
Read.
virtual void writeData(Foam::Ostream &os) const
Write.
virtual ~addstopAtWriteNowSignalToOpt()=default
addstopAtWriteNowSignalToOpt(const addstopAtWriteNowSignalToOpt &)=delete