Go to the documentation of this file.
43 int Foam::sigStopAtWriteNow::signal_
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);
static void set(bool verbose=false)
void set(List< bool > &bools, const labelRange &range)
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 void resetHandler(const char *what, int sigNum)
addstopAtWriteNowSignalToOpt addstopAtWriteNowSignalToOpt_("stopAtWriteNowSignal")
virtual stopAtControls stopAt() const
Ostream & endl(Ostream &os)
virtual void readData(Foam::Istream &is)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
File-local code for setting/resetting signal handlers.
static Foam::Time const * runTimePtr_
int optimisationSwitch(const char *name, const int deflt=0)
static int signalNumber()
OBJstream os(runTime.globalPath()/outputName)
virtual void writeData(Foam::Ostream &os) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
void operator=(const addstopAtWriteNowSignalToOpt &)=delete
static int signalNumber()
#define FatalErrorInFunction
static void setHandler(const char *what, int sigNum, void(*handler)(int))
@ saWriteNow
adjust endTime to stop immediately w/ writing
addstopAtWriteNowSignalToOpt(const addstopAtWriteNowSignalToOpt &)=delete
addstopAtWriteNowSignalToOpt(const char *name)
virtual ~addstopAtWriteNowSignalToOpt()=default
word name(const expressions::valueTypeCode typeCode)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void addOptimisationObject(const char *name, simpleRegIOobject *obj)
Abstract base class for registered object with I/O. Used in debug symbol registration.