Skip to content
Snippets Groups Projects
Commit a0b0e23c authored by mattijs's avatar mattijs
Browse files

proper error handling

parent 2455b81a
No related merge requests found
......@@ -127,11 +127,11 @@ void Foam::Time::setControls()
}
else
{
WarningIn("Time::setControls()")
<< " expected startTime, firstTime or latestTime"
<< " found '" << startFrom
<< "' in dictionary " << controlDict_.name() << nl
<< " Setting time to " << startTime_ << endl;
FatalIOErrorIn("Time::setControls()", controlDict_)
<< "expected startTime, firstTime or latestTime"
<< " found '" << startFrom << "'"
//<< "' in dictionary " << controlDict_.name()
<< exit(FatalIOError);
}
}
......@@ -151,10 +151,10 @@ void Foam::Time::setControls()
> Pstream::nProcs()*deltaT_/10.0
)
{
FatalErrorIn("Time::setControls()")
FatalIOErrorIn("Time::setControls()", controlDict_)
<< "Start time is not the same for all processors" << nl
<< "processor " << Pstream::myProcNo() << " has startTime "
<< startTime_ << exit(FatalError);
<< startTime_ << exit(FatalIOError);
}
}
......
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