mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
proper error handling
This commit is contained in:
@ -127,11 +127,11 @@ void Foam::Time::setControls()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WarningIn("Time::setControls()")
|
FatalIOErrorIn("Time::setControls()", controlDict_)
|
||||||
<< " expected startTime, firstTime or latestTime"
|
<< "expected startTime, firstTime or latestTime"
|
||||||
<< " found '" << startFrom
|
<< " found '" << startFrom << "'"
|
||||||
<< "' in dictionary " << controlDict_.name() << nl
|
//<< "' in dictionary " << controlDict_.name()
|
||||||
<< " Setting time to " << startTime_ << endl;
|
<< exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,10 +151,10 @@ void Foam::Time::setControls()
|
|||||||
> Pstream::nProcs()*deltaT_/10.0
|
> Pstream::nProcs()*deltaT_/10.0
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorIn("Time::setControls()")
|
FatalIOErrorIn("Time::setControls()", controlDict_)
|
||||||
<< "Start time is not the same for all processors" << nl
|
<< "Start time is not the same for all processors" << nl
|
||||||
<< "processor " << Pstream::myProcNo() << " has startTime "
|
<< "processor " << Pstream::myProcNo() << " has startTime "
|
||||||
<< startTime_ << exit(FatalError);
|
<< startTime_ << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user