Go to the documentation of this file.
42 int Foam::sigWriteNow::signal_
74 is >> sigWriteNow::signal_;
80 os << sigWriteNow::signal_;
91 void Foam::sigWriteNow::sigHandler(
int)
95 Info<<
"sigWriteNow :"
96 <<
" setting up write at end of the next iteration" <<
nl <<
endl;
151 Info<<
"sigWriteNow :"
152 <<
" Enabling writing upon signal " << signal_ <<
nl;
int debug
Static debugging option.
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 void resetHandler(const char *what, int sigNum)
virtual ~addwriteNowSignalToOpt()=default
addwriteNowSignalToOpt(const addwriteNowSignalToOpt &)=delete
sigWriteNow()
Construct null.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeOnce()
Write the objects once (one shot) and continue the run.
static void set(bool verbose=false)
Set/reset signal handler.
~sigWriteNow()
Destructor.
addwriteNowSignalToOpt(const char *name)
static bool active()
Is active?
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const addwriteNowSignalToOpt &)=delete
static Foam::Time * runTimePtr_
static void setHandler(const char *what, int sigNum, void(*handler)(int))
virtual void readData(Foam::Istream &is)
Read.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeData(Foam::Ostream &os) const
Write.
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.
addwriteNowSignalToOpt addwriteNowSignalToOpt_("writeNowSignal")