Commit 6ef1fc78 authored by mattijs's avatar mattijs
Browse files

ENH: sigStopAt: added checking for same signals

parent 286f8a82
......@@ -83,6 +83,21 @@ Foam::sigStopAtWriteNow::sigStopAtWriteNow
{
if (signal_ > 0)
{
// Check that the signal is different from the writeNowSignal
if (sigWriteNow::signal_ == signal_)
{
FatalErrorIn
(
"Foam::sigStopAtWriteNow::sigStopAtWriteNow"
"(const bool, const Time&)"
) << "stopAtWriteNowSignal : " << signal_
<< " cannot be the same as the writeNowSignal."
<< " Please change this in the controlDict ("
<< findEtcFile("controlDict", false) << ")."
<< exit(FatalError);
}
// Store runTime
runTimePtr_ = &runTime;
......
......@@ -67,6 +67,8 @@ class sigWriteNow
public:
friend class sigStopAtWriteNow;
// Constructors
//- Construct null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment