STYLE: indentation for FatalIOErrorInFunction calls

This commit is contained in:
Mark Olesen
2018-11-06 09:49:22 +01:00
parent 2fc1a1692b
commit a7a346b206
111 changed files with 415 additions and 813 deletions

View File

@ -59,10 +59,8 @@ Foam::cyclicACMIPointPatchField<Type>::cyclicACMIPointPatchField
{
if (!isType<cyclicACMIPointPatch>(p))
{
FatalIOErrorInFunction
(
dict
) << "patch " << this->patch().index() << " not cyclicACMI type. "
FatalIOErrorInFunction(dict)
<< "patch " << this->patch().index() << " not cyclicACMI type. "
<< "Patch type = " << p.type()
<< exit(FatalIOError);
}

View File

@ -375,10 +375,8 @@ Foam::cyclicACMIPolyPatch::cyclicACMIPolyPatch
if (nonOverlapPatchName_ == name)
{
FatalIOErrorInFunction
(
dict
) << "Non-overlapping patch name " << nonOverlapPatchName_
FatalIOErrorInFunction(dict)
<< "Non-overlapping patch name " << nonOverlapPatchName_
<< " cannot be the same as this patch " << name
<< exit(FatalIOError);
}

View File

@ -59,10 +59,8 @@ Foam::cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField
{
if (!isType<cyclicAMIPointPatch>(p))
{
FatalIOErrorInFunction
(
dict
) << "patch " << this->patch().index() << " not cyclicAMI type. "
FatalIOErrorInFunction(dict)
<< "patch " << this->patch().index() << " not cyclicAMI type. "
<< "Patch type = " << p.type()
<< exit(FatalIOError);
}

View File

@ -546,19 +546,15 @@ Foam::cyclicAMIPolyPatch::cyclicAMIPolyPatch
{
if (nbrPatchName_ == word::null && !coupleGroup_.valid())
{
FatalIOErrorInFunction
(
dict
) << "No \"neighbourPatch\" or \"coupleGroup\" provided."
FatalIOErrorInFunction(dict)
<< "No \"neighbourPatch\" or \"coupleGroup\" provided."
<< exit(FatalIOError);
}
if (nbrPatchName_ == name)
{
FatalIOErrorInFunction
(
dict
) << "Neighbour patch name " << nbrPatchName_
FatalIOErrorInFunction(dict)
<< "Neighbour patch name " << nbrPatchName_
<< " cannot be the same as this patch " << name
<< exit(FatalIOError);
}
@ -584,10 +580,8 @@ Foam::cyclicAMIPolyPatch::cyclicAMIPolyPatch
scalar magRot = mag(rotationAxis_);
if (magRot < SMALL)
{
FatalIOErrorInFunction
(
dict
) << "Illegal rotationAxis " << rotationAxis_ << endl
FatalIOErrorInFunction(dict)
<< "Illegal rotationAxis " << rotationAxis_ << endl
<< "Please supply a non-zero vector."
<< exit(FatalIOError);
}

View File

@ -106,7 +106,7 @@ Foam::Field<Type> Foam::PatchFunction1Types::ConstantField<Type>::getValue
else
{
FatalIOErrorInFunction(dict)
<< "expected keyword 'uniform', 'nonuniform' or 'constant'"
<< "Expected keyword 'uniform', 'nonuniform' or 'constant'"
<< ", found " << firstToken.wordToken()
<< exit(FatalIOError);
}

View File

@ -158,10 +158,8 @@ void Foam::coordinateSystems::readFromStream(const bool valid)
}
else
{
FatalIOErrorInFunction
(
is
) << "unexpected class name " << headerClassName()
FatalIOErrorInFunction(is)
<< "unexpected class name " << headerClassName()
<< " expected " << typeName
<< " or " << headerTypeCompat << nl
<< " while reading object " << name()

View File

@ -181,10 +181,8 @@ void Foam::fileFormats::edgeMeshFormat::write
if (!osPtr().good())
{
FatalIOErrorInFunction
(
osPtr()
) << "Cannot open file for writing " << filename
FatalIOErrorInFunction(osPtr())
<< "Cannot open file for writing " << filename
<< exit(FatalIOError);
}
@ -193,10 +191,8 @@ void Foam::fileFormats::edgeMeshFormat::write
if (!ok)
{
FatalIOErrorInFunction
(
os
) << "Cannot write header"
FatalIOErrorInFunction(os)
<< "Cannot write header"
<< exit(FatalIOError);
}

View File

@ -884,7 +884,7 @@ Foam::tmp<Foam::pointField> Foam::mappedPatchBase::readListOrField
else
{
FatalIOErrorInFunction(dict)
<< "expected keyword 'uniform' or 'nonuniform', found "
<< "Expected keyword 'uniform' or 'nonuniform', found "
<< firstToken.wordToken()
<< exit(FatalIOError);
}
@ -892,7 +892,7 @@ Foam::tmp<Foam::pointField> Foam::mappedPatchBase::readListOrField
else if (is.version() == IOstream::versionNumber(2,0))
{
IOWarningInFunction(dict)
<< "expected keyword 'uniform' or 'nonuniform', "
<< "Expected keyword 'uniform' or 'nonuniform', "
"assuming List format for backwards compatibility."
"Foam version 2.0." << endl;