src/OpenFOAM: Update ...IOErrorIn -> ...IOErrorInFunction

Avoids the clutter and maintenance effort associated with providing the
function signature string.
This commit is contained in:
Henry Weller
2015-11-10 21:13:04 +00:00
parent e2ef006b91
commit dc43311e62
84 changed files with 309 additions and 491 deletions

View File

@ -178,7 +178,7 @@ void Foam::Time::setControls()
}
else
{
FatalIOErrorIn("Time::setControls()", controlDict_)
FatalIOErrorInFunction(controlDict_)
<< "expected startTime, firstTime or latestTime"
<< " found '" << startFrom << "'"
<< exit(FatalIOError);
@ -225,7 +225,7 @@ void Foam::Time::setControls()
// Update the time formatting
setTime(startTime_, 0);
WarningIn("Time::setControls()")
WarningInFunction
<< "Increasing the timePrecision from " << oldPrecision
<< " to " << precision_
<< " to support the formatting of the current time directory "
@ -251,7 +251,7 @@ void Foam::Time::setControls()
> Pstream::nProcs()*deltaT_/10.0
)
{
FatalIOErrorIn("Time::setControls()", controlDict_)
FatalIOErrorInFunction(controlDict_)
<< "Start time is not the same for all processors" << nl
<< "processor " << Pstream::myProcNo() << " has startTime "
<< startTime_ << exit(FatalIOError);
@ -318,7 +318,7 @@ void Foam::Time::setControls()
if (storedTimeName != timeName())
{
IOWarningIn("Time::setControls()", timeDict)
IOWarningInFunction(timeDict)
<< "Time read from time dictionary " << storedTimeName
<< " differs from actual time " << timeName() << '.' << nl
<< " This may cause unexpected database behaviour."
@ -1308,7 +1308,7 @@ Foam::Time& Foam::Time::operator++()
if (precision_ != oldPrecision)
{
WarningIn("Time::operator++()")
WarningInFunction
<< "Increased the timePrecision from " << oldPrecision
<< " to " << precision_
<< " to distinguish between timeNames at time "
@ -1318,7 +1318,7 @@ Foam::Time& Foam::Time::operator++()
if (precision_ == maxPrecision_)
{
// Reached maxPrecision limit
WarningIn("Time::operator++()")
WarningInFunction
<< "Current time name " << dimensionedScalar::name()
<< nl
<< " The maximum time precision has been reached"
@ -1338,7 +1338,7 @@ Foam::Time& Foam::Time::operator++()
)
)
{
WarningIn("Time::operator++()")
WarningInFunction
<< "Current time name " << dimensionedScalar::name()
<< " is set to an instance prior to the "
"previous one "