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