src/finiteVolume: Update ...ErrorIn -> ...ErrorInFunction

Avoids the clutter and maintenance effort associated with providing the
function signature string.
This commit is contained in:
Henry Weller
2015-11-10 16:55:03 +00:00
parent 78d7482e5b
commit 735ce9cce7
128 changed files with 492 additions and 1307 deletions

View File

@ -289,16 +289,7 @@ Foam::MRFZone::MRFZone
if (!cellZoneFound) if (!cellZoneFound)
{ {
FatalErrorIn FatalErrorInFunction
(
"MRFZone"
"("
"const word&, "
"const fvMesh&, "
"const dictionary&, "
"const word&"
")"
)
<< "cannot find MRF cellZone " << cellZoneName_ << "cannot find MRF cellZone " << cellZoneName_
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,10 +57,8 @@ Foam::autoPtr<Foam::SRF::SRFModel> Foam::SRF::SRFModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown SRFModel type "
"SRFModel::New(const fvMesh&)"
) << "Unknown SRFModel type "
<< modelType << nl << nl << modelType << nl << nl
<< "Valid SRFModel types are :" << nl << "Valid SRFModel types are :" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -103,15 +103,8 @@ bool Foam::adjustPhi
} }
else if (mag(fixedMassOut - massIn)/totalFlux > 1e-8) else if (mag(fixedMassOut - massIn)/totalFlux > 1e-8)
{ {
FatalErrorIn FatalErrorInFunction
( << "Continuity error cannot be removed by adjusting the"
"adjustPhi"
"("
"surfaceScalarField&, "
"const volVectorField&,"
"volScalarField&"
")"
) << "Continuity error cannot be removed by adjusting the"
" outflow.\nPlease check the velocity boundary conditions" " outflow.\nPlease check the velocity boundary conditions"
" and/or run potentialFoam to initialise the outflow." << nl " and/or run potentialFoam to initialise the outflow." << nl
<< "Total flux : " << totalFlux << nl << "Total flux : " << totalFlux << nl

View File

@ -52,16 +52,8 @@ void Foam::setRefCell
if (refCelli < 0 || refCelli >= field.mesh().nCells()) if (refCelli < 0 || refCelli >= field.mesh().nCells())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"void Foam::setRefCell\n"
" (\n"
" const volScalarField&,\n"
" const volScalarField&,\n"
" const dictionary&,\n"
" label& scalar&,\n"
" bool\n"
")",
dict dict
) << "Illegal master cellID " << refCelli ) << "Illegal master cellID " << refCelli
<< ". Should be 0.." << field.mesh().nCells() << ". Should be 0.." << field.mesh().nCells()
@ -95,16 +87,8 @@ void Foam::setRefCell
if (sumHasRef != 1) if (sumHasRef != 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"void Foam::setRefCell\n"
" (\n"
" const volScalarField&,\n"
" const volScalarField&,\n"
" const dictionary&,\n"
" label& scalar&,\n"
" bool\n"
" )",
dict dict
) << "Unable to set reference cell for field " << field.name() ) << "Unable to set reference cell for field " << field.name()
<< nl << " Reference point " << refPointName << nl << " Reference point " << refPointName
@ -115,16 +99,8 @@ void Foam::setRefCell
} }
else else
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"void Foam::setRefCell\n"
" (\n"
" const volScalarField&,\n"
" const volScalarField&,\n"
" const dictionary&,\n"
" label& scalar&,\n"
" bool\n"
" )",
dict dict
) << "Unable to set reference cell for field " << field.name() ) << "Unable to set reference cell for field " << field.name()
<< nl << nl

View File

@ -1,6 +1,6 @@
if (!isA<zeroGradientFvPatchScalarField>(k_.boundaryField()[patchi])) if (!isA<zeroGradientFvPatchScalarField>(k_.boundaryField()[patchi]))
{ {
FatalErrorIn("wall-function evaluation") FatalErrorInFunction
<< k_.boundaryField()[patchi].type() << k_.boundaryField()[patchi].type()
<< " is the wrong k patchField type for wall-functions on patch " << " is the wrong k patchField type for wall-functions on patch "
<< curPatch.name() << nl << curPatch.name() << nl
@ -10,7 +10,7 @@ if (!isA<zeroGradientFvPatchScalarField>(k_.boundaryField()[patchi]))
if (!isA<zeroGradientFvPatchScalarField>(epsilon_.boundaryField()[patchi])) if (!isA<zeroGradientFvPatchScalarField>(epsilon_.boundaryField()[patchi]))
{ {
FatalErrorIn("wall-function evaluation") FatalErrorInFunction
<< epsilon_.boundaryField()[patchi].type() << epsilon_.boundaryField()[patchi].type()
<< " is the wrong epsilon patchField type for wall-functions on patch " << " is the wrong epsilon patchField type for wall-functions on patch "
<< curPatch.name() << nl << curPatch.name() << nl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,13 +43,8 @@ void Foam::porosityModel::adjustNegativeResistance(dimensionedVector& resist)
if (maxCmpt < 0) if (maxCmpt < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Negative resistances are invalid, resistance = " << resist
"void Foam::porosityModel::adjustNegativeResistance"
"("
"dimensionedVector&"
")"
) << "Negative resistances are invalid, resistance = " << resist
<< exit(FatalError); << exit(FatalError);
} }
else else
@ -123,17 +118,8 @@ Foam::porosityModel::porosityModel
if (!foundZone && Pstream::master()) if (!foundZone && Pstream::master())
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot find porous cellZone " << zoneName_
"Foam::porosityModel::porosityModel"
"("
"const word&, "
"const word&, "
"const fvMesh&, "
"const dictionary&"
"const word&, "
")"
) << "cannot find porous cellZone " << zoneName_
<< exit(FatalError); << exit(FatalError);
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,16 +45,7 @@ Foam::autoPtr<Foam::porosityModel> Foam::porosityModel::New
if (cstrIter == meshConstructorTablePtr_->end()) if (cstrIter == meshConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
(
"porosityModel::New"
"("
"const word&, "
"const fvMesh&, "
"const dictionary&, "
"const word&"
")"
)
<< "Unknown " << typeName << " type " << modelType << nl << nl << "Unknown " << typeName << " type " << modelType << nl << nl
<< "Valid " << typeName << " types are:" << nl << "Valid " << typeName << " types are:" << nl
<< meshConstructorTablePtr_->sortedToc() << meshConstructorTablePtr_->sortedToc()

View File

@ -81,7 +81,7 @@ void Foam::solutionControl::read(const bool absTolOnly)
} }
else else
{ {
FatalErrorIn("bool Foam::solutionControl::read()") FatalErrorInFunction
<< "Residual data for " << iter().keyword() << "Residual data for " << iter().keyword()
<< " must be specified as a dictionary" << " must be specified as a dictionary"
<< exit(FatalError); << exit(FatalError);
@ -107,7 +107,7 @@ void Foam::solutionControl::read(const bool absTolOnly)
} }
else else
{ {
FatalErrorIn("bool Foam::solutionControl::read()") FatalErrorInFunction
<< "Residual data for " << iter().keyword() << "Residual data for " << iter().keyword()
<< " must be specified as a dictionary" << " must be specified as a dictionary"
<< exit(FatalError); << exit(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -147,12 +147,8 @@ Foam::calculatedFvPatchField<Type>::valueInternalCoeffs
const tmp<scalarField>& const tmp<scalarField>&
) const ) const
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot be called for a calculatedFvPatchField"
"calculatedFvPatchField<Type>::"
"valueInternalCoeffs(const tmp<scalarField>&) const"
) << "\n "
"valueInternalCoeffs cannot be called for a calculatedFvPatchField"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()
@ -171,12 +167,8 @@ Foam::calculatedFvPatchField<Type>::valueBoundaryCoeffs
const tmp<scalarField>& const tmp<scalarField>&
) const ) const
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot be called for a calculatedFvPatchField"
"calculatedFvPatchField<Type>::"
"valueBoundaryCoeffs(const tmp<scalarField>&) const"
) << "\n "
"valueBoundaryCoeffs cannot be called for a calculatedFvPatchField"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()
@ -192,13 +184,8 @@ template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::gradientInternalCoeffs() const Foam::calculatedFvPatchField<Type>::gradientInternalCoeffs() const
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot be called for a calculatedFvPatchField"
"calculatedFvPatchField<Type>::"
"gradientInternalCoeffs() const"
) << "\n "
"gradientInternalCoeffs cannot be called for a "
"calculatedFvPatchField"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()
@ -214,13 +201,8 @@ template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const Foam::calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot be called for a calculatedFvPatchField"
"calculatedFvPatchField<Type>::"
"gradientBoundaryCoeffs() const"
) << "\n "
"gradientBoundaryCoeffs cannot be called for a "
"calculatedFvPatchField"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,16 +58,8 @@ Foam::directionMixedFvPatchField<Type>::directionMixedFvPatchField
{ {
if (notNull(iF) && mapper.hasUnmapped()) if (notNull(iF) && mapper.hasUnmapped())
{ {
WarningIn WarningInFunction
( << "On field " << iF.name() << " patch " << p.name()
"directionMixedFvPatchField<Type>::directionMixedFvPatchField\n"
"(\n"
" const directionMixedFvPatchField<Type>&,\n"
" const fvPatch&,\n"
" const DimensionedField<Type, volMesh>&,\n"
" const fvPatchFieldMapper&\n"
")\n"
) << "On field " << iF.name() << " patch " << p.name()
<< " patchField " << this->type() << " patchField " << this->type()
<< " : mapper does not map all values." << nl << " : mapper does not map all values." << nl
<< " To avoid this warning fully specify the mapping in derived" << " To avoid this warning fully specify the mapping in derived"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,16 +59,8 @@ fixedGradientFvPatchField<Type>::fixedGradientFvPatchField
{ {
if (notNull(iF) && mapper.hasUnmapped()) if (notNull(iF) && mapper.hasUnmapped())
{ {
WarningIn WarningInFunction
( << "On field " << iF.name() << " patch " << p.name()
"fixedGradientFvPatchField<Type>::fixedGradientFvPatchField\n"
"(\n"
" const fixedGradientFvPatchField<Type>&,\n"
" const fvPatch&,\n"
" const DimensionedField<Type, volMesh>&,\n"
" const fvPatchFieldMapper&\n"
")\n"
) << "On field " << iF.name() << " patch " << p.name()
<< " patchField " << this->type() << " patchField " << this->type()
<< " : mapper does not map all values." << nl << " : mapper does not map all values." << nl
<< " To avoid this warning fully specify the mapping in derived" << " To avoid this warning fully specify the mapping in derived"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -68,16 +68,8 @@ fixedValueFvPatchField<Type>::fixedValueFvPatchField
{ {
if (notNull(iF) && mapper.hasUnmapped()) if (notNull(iF) && mapper.hasUnmapped())
{ {
WarningIn WarningInFunction
( << "On field " << iF.name() << " patch " << p.name()
"fixedValueFvPatchField<Type>::fixedValueFvPatchField\n"
"(\n"
" const fixedValueFvPatchField<Type>&,\n"
" const fvPatch&,\n"
" const DimensionedField<Type, volMesh>&,\n"
" const fvPatchFieldMapper&\n"
")\n"
) << "On field " << iF.name() << " patch " << p.name()
<< " patchField " << this->type() << " patchField " << this->type()
<< " : mapper does not map all values." << nl << " : mapper does not map all values." << nl
<< " To avoid this warning fully specify the mapping in derived" << " To avoid this warning fully specify the mapping in derived"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,16 +62,8 @@ mixedFvPatchField<Type>::mixedFvPatchField
{ {
if (notNull(iF) && mapper.hasUnmapped()) if (notNull(iF) && mapper.hasUnmapped())
{ {
WarningIn WarningInFunction
( << "On field " << iF.name() << " patch " << p.name()
"mixedFvPatchField<Type>::mixedFvPatchField\n"
"(\n"
" const mixedFvPatchField<Type>&,\n"
" const fvPatch&,\n"
" const DimensionedField<Type, volMesh>&,\n"
" const fvPatchFieldMapper&\n"
")\n"
) << "On field " << iF.name() << " patch " << p.name()
<< " patchField " << this->type() << " patchField " << this->type()
<< " : mapper does not map all values." << nl << " : mapper does not map all values." << nl
<< " To avoid this warning fully specify the mapping in derived" << " To avoid this warning fully specify the mapping in derived"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,16 +59,7 @@ cyclicFvPatchField<Type>::cyclicFvPatchField
{ {
if (!isA<cyclicFvPatch>(this->patch())) if (!isA<cyclicFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"cyclicFvPatchField<Type>::cyclicFvPatchField"
"("
"const cyclicFvPatchField<Type>& ,"
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&"
")"
) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -91,14 +82,8 @@ cyclicFvPatchField<Type>::cyclicFvPatchField
{ {
if (!isA<cyclicFvPatch>(p)) if (!isA<cyclicFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicFvPatchField<Type>::cyclicFvPatchField"
"("
"const fvPatch&, "
"const Field<Type>&, "
"const dictionary&"
")",
dict dict
) << " patch type '" << p.type() ) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,7 @@ Foam::cyclicACMIFvPatchField<Type>::cyclicACMIFvPatchField
{ {
if (!isA<cyclicACMIFvPatch>(this->patch())) if (!isA<cyclicACMIFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"cyclicACMIFvPatchField<Type>::cyclicACMIFvPatchField"
"("
"const cyclicACMIFvPatchField<Type>& ,"
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&"
")"
) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -89,14 +80,8 @@ Foam::cyclicACMIFvPatchField<Type>::cyclicACMIFvPatchField
{ {
if (!isA<cyclicACMIFvPatch>(p)) if (!isA<cyclicACMIFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicACMIFvPatchField<Type>::cyclicACMIFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&"
")",
dict dict
) << " patch type '" << p.type() ) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,16 +53,7 @@ Foam::cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField
{ {
if (!isA<cyclicAMIFvPatch>(this->patch())) if (!isA<cyclicAMIFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField"
"("
"const cyclicAMIFvPatchField<Type>& ,"
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&"
")"
) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -86,14 +77,8 @@ Foam::cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField
{ {
if (!isA<cyclicAMIFvPatch>(p)) if (!isA<cyclicAMIFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&"
")",
dict dict
) << " patch type '" << p.type() ) << " patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -26,15 +26,10 @@ License
#include "emptyFvPatchField.H" #include "emptyFvPatchField.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type> template<class Type>
emptyFvPatchField<Type>::emptyFvPatchField Foam::emptyFvPatchField<Type>::emptyFvPatchField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<Type, volMesh>& iF const DimensionedField<Type, volMesh>& iF
@ -45,7 +40,7 @@ emptyFvPatchField<Type>::emptyFvPatchField
template<class Type> template<class Type>
emptyFvPatchField<Type>::emptyFvPatchField Foam::emptyFvPatchField<Type>::emptyFvPatchField
( (
const emptyFvPatchField<Type>&, const emptyFvPatchField<Type>&,
const fvPatch& p, const fvPatch& p,
@ -57,16 +52,7 @@ emptyFvPatchField<Type>::emptyFvPatchField
{ {
if (!isType<emptyFvPatch>(p)) if (!isType<emptyFvPatch>(p))
{ {
FatalErrorIn FatalErrorInFunction
(
"emptyFvPatchField<Type>::emptyFvPatchField\n"
"(\n"
" const emptyFvPatchField<Type>&,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -77,7 +63,7 @@ emptyFvPatchField<Type>::emptyFvPatchField
template<class Type> template<class Type>
emptyFvPatchField<Type>::emptyFvPatchField Foam::emptyFvPatchField<Type>::emptyFvPatchField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<Type, volMesh>& iF, const DimensionedField<Type, volMesh>& iF,
@ -88,14 +74,8 @@ emptyFvPatchField<Type>::emptyFvPatchField
{ {
if (!isType<emptyFvPatch>(p)) if (!isType<emptyFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"emptyFvPatchField<Type>::emptyFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
@ -108,7 +88,7 @@ emptyFvPatchField<Type>::emptyFvPatchField
template<class Type> template<class Type>
emptyFvPatchField<Type>::emptyFvPatchField Foam::emptyFvPatchField<Type>::emptyFvPatchField
( (
const emptyFvPatchField<Type>& ptf const emptyFvPatchField<Type>& ptf
) )
@ -123,7 +103,7 @@ emptyFvPatchField<Type>::emptyFvPatchField
template<class Type> template<class Type>
emptyFvPatchField<Type>::emptyFvPatchField Foam::emptyFvPatchField<Type>::emptyFvPatchField
( (
const emptyFvPatchField<Type>& ptf, const emptyFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF const DimensionedField<Type, volMesh>& iF
@ -136,28 +116,11 @@ emptyFvPatchField<Type>::emptyFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
void emptyFvPatchField<Type>::updateCoeffs() void Foam::emptyFvPatchField<Type>::updateCoeffs()
{ {
//- Check moved to checkMesh. Test here breaks down if multiple empty // Check moved to checkMesh.
// patches. // Test here fails if multiple empty patches.
//if
//(
// this->patch().patch().size()
// % this->dimensionedInternalField().mesh().nCells()
//)
//{
// FatalErrorIn("emptyFvPatchField<Type>::updateCoeffs()")
// << "This mesh contains patches of type empty but is not"
// << "1D or 2D\n"
// " by virtue of the fact that the number of faces of this\n"
// " empty patch is not divisible by the number of cells."
// << exit(FatalError);
//}
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -88,16 +88,7 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
{ {
if (!isA<processorFvPatch>(this->patch())) if (!isA<processorFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"processorFvPatchField<Type>::processorFvPatchField\n"
"(\n"
" const processorFvPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -106,7 +97,7 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
} }
if (debug && !ptf.ready()) if (debug && !ptf.ready())
{ {
FatalErrorIn("processorFvPatchField<Type>::processorFvPatchField(..)") FatalErrorInFunction
<< "On patch " << procPatch_.name() << " outstanding request." << "On patch " << procPatch_.name() << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }
@ -132,14 +123,8 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
{ {
if (!isA<processorFvPatch>(p)) if (!isA<processorFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"processorFvPatchField<Type>::processorFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
@ -169,7 +154,7 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
{ {
if (debug && !ptf.ready()) if (debug && !ptf.ready())
{ {
FatalErrorIn("processorFvPatchField<Type>::processorFvPatchField(..)") FatalErrorInFunction
<< "On patch " << procPatch_.name() << " outstanding request." << "On patch " << procPatch_.name() << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }
@ -194,7 +179,7 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
{ {
if (debug && !ptf.ready()) if (debug && !ptf.ready())
{ {
FatalErrorIn("processorFvPatchField<Type>::processorFvPatchField(..)") FatalErrorInFunction
<< "On patch " << procPatch_.name() << " outstanding request." << "On patch " << procPatch_.name() << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }
@ -216,7 +201,7 @@ Foam::processorFvPatchField<Type>::patchNeighbourField() const
{ {
if (debug && !this->ready()) if (debug && !this->ready())
{ {
FatalErrorIn("processorFvPatchField<Type>::patchNeighbourField()") FatalErrorInFunction
<< "On patch " << procPatch_.name() << "On patch " << procPatch_.name()
<< " outstanding request." << " outstanding request."
<< abort(FatalError); << abort(FatalError);
@ -333,10 +318,8 @@ void Foam::processorFvPatchField<Type>::initInterfaceMatrixUpdate
// Fast path. // Fast path.
if (debug && !this->ready()) if (debug && !this->ready())
{ {
FatalErrorIn FatalErrorInFunction
( << "On patch " << procPatch_.name()
"processorFvPatchField<Type>::initInterfaceMatrixUpdate(..)"
) << "On patch " << procPatch_.name()
<< " outstanding request." << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }
@ -454,10 +437,8 @@ void Foam::processorFvPatchField<Type>::initInterfaceMatrixUpdate
// Fast path. // Fast path.
if (debug && !this->ready()) if (debug && !this->ready())
{ {
FatalErrorIn FatalErrorInFunction
( << "On patch " << procPatch_.name()
"processorFvPatchField<Type>::initInterfaceMatrixUpdate(..)"
) << "On patch " << procPatch_.name()
<< " outstanding request." << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,10 +49,8 @@ void processorFvPatchField<scalar>::initInterfaceMatrixUpdate
// Fast path. // Fast path.
if (debug && !this->ready()) if (debug && !this->ready())
{ {
FatalErrorIn FatalErrorInFunction
( << "On patch " << procPatch_.name()
"processorFvPatchField<scalar>::initInterfaceMatrixUpdate(..)"
) << "On patch " << procPatch_.name()
<< " outstanding request." << " outstanding request."
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,16 +72,7 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
{ {
if (!isType<processorCyclicFvPatch>(this->patch())) if (!isType<processorCyclicFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"processorCyclicFvPatchField<Type>::processorCyclicFvPatchField\n"
"(\n"
" const processorCyclicFvPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -105,14 +96,8 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
{ {
if (!isType<processorCyclicFvPatch>(p)) if (!isType<processorCyclicFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"processorCyclicFvPatchField<Type>::processorCyclicFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
@ -124,15 +109,8 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
if (Pstream::defaultCommsType == Pstream::scheduled) if (Pstream::defaultCommsType == Pstream::scheduled)
{ {
WarningIn WarningInFunction
( << "Scheduled communication with split cyclics not supported."
"processorCyclicFvPatchField<Type>::processorCyclicFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const dictionary& dict\n"
")\n"
) << "Scheduled communication with split cyclics not supported."
<< endl; << endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,7 @@ symmetryFvPatchField<Type>::symmetryFvPatchField
{ {
if (!isType<symmetryFvPatch>(this->patch())) if (!isType<symmetryFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"symmetryFvPatchField<Type>::symmetryFvPatchField\n"
"(\n"
" const symmetryFvPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -87,14 +78,8 @@ symmetryFvPatchField<Type>::symmetryFvPatchField
{ {
if (!isType<symmetryFvPatch>(p)) if (!isType<symmetryFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"symmetryFvPatchField<Type>::symmetryFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,16 +54,7 @@ Foam::symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField
{ {
if (!isType<symmetryPlaneFvPatch>(this->patch())) if (!isType<symmetryPlaneFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField\n"
"(\n"
" const symmetryPlaneFvPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -86,14 +77,8 @@ Foam::symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField
{ {
if (!isType<symmetryPlaneFvPatch>(p)) if (!isType<symmetryPlaneFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,7 @@ Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
{ {
if (!isType<wedgeFvPatch>(this->patch())) if (!isType<wedgeFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"wedgeFvPatchField<Type>::wedgeFvPatchField\n"
"(\n"
" const wedgeFvPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name() << "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -87,14 +78,8 @@ Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
{ {
if (!isType<wedgeFvPatch>(p)) if (!isType<wedgeFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"wedgeFvPatchField<Type>::wedgeFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" dictionary& dict\n"
")\n",
dict dict
) << "\n patch type '" << p.type() ) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'" << "' not constraint type '" << typeName << "'"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -106,15 +106,8 @@ Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
if (lInf_ < 0.0) if (lInf_ < 0.0)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"advectiveFvPatchField<Type>::"
"advectiveFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&"
")",
dict dict
) << "unphysical lInf specified (lInf < 0)" << nl ) << "unphysical lInf specified (lInf < 0)" << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
@ -252,8 +245,7 @@ void Foam::advectiveFvPatchField<Type>::updateCoeffs()
} }
else else
{ {
FatalErrorIn("advectiveFvPatchField<Type>::updateCoeffs()") FatalErrorInFunction
<< " Unsupported temporal differencing scheme : "
<< ddtScheme << nl << ddtScheme << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
@ -285,10 +277,7 @@ void Foam::advectiveFvPatchField<Type>::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
(
"advectiveFvPatchField<Type>::updateCoeffs()"
) << " Unsupported temporal differencing scheme : "
<< ddtScheme << ddtScheme
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -280,12 +280,7 @@ void Foam::externalCoupledMixedFvPatchField<Type>::wait() const
{ {
if (totalTime > timeOut_) if (totalTime > timeOut_)
{ {
FatalErrorIn FatalErrorInFunction
(
"void "
"Foam::externalCoupledMixedFvPatchField<Type>::wait() "
"const"
)
<< "Wait time exceeded time out time of " << timeOut_ << "Wait time exceeded time out time of " << timeOut_
<< " s" << abort(FatalError); << " s" << abort(FatalError);
} }
@ -327,14 +322,7 @@ void Foam::externalCoupledMixedFvPatchField<Type>::initialiseRead
{ {
if (!is.good()) if (!is.good())
{ {
FatalErrorIn FatalErrorInFunction
(
"void Foam::externalCoupledMixedFvPatchField<Type>::"
"initialiseRead"
"("
"IFstream&"
") const"
)
<< "Unable to open data transfer file " << is.name() << "Unable to open data transfer file " << is.name()
<< " for patch " << this->patch().name() << " for patch " << this->patch().name()
<< exit(FatalError); << exit(FatalError);
@ -352,14 +340,7 @@ void Foam::externalCoupledMixedFvPatchField<Type>::initialiseRead
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
(
"void Foam::externalCoupledMixedFvPatchField<Type>::"
"initialiseRead"
"("
"IFstream&"
") const"
)
<< "Unable to scan forward to appropriate read position for " << "Unable to scan forward to appropriate read position for "
<< "data transfer file " << is.name() << "data transfer file " << is.name()
<< " for patch " << this->patch().name() << " for patch " << this->patch().name()
@ -394,13 +375,7 @@ void Foam::externalCoupledMixedFvPatchField<Type>::readData
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
(
"void Foam::externalCoupledMixedFvPatchField<Type>::readData"
"("
"const fileName&"
")"
)
<< "Insufficient data for patch " << "Insufficient data for patch "
<< this->patch().name() << this->patch().name()
<< " in file " << is.name() << " in file " << is.name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -148,7 +148,7 @@ void Foam::fanPressureFvPatchScalarField::updateCoeffs()
} }
else else
{ {
FatalErrorIn("fanPressureFvPatchScalarField::updateCoeffs()") FatalErrorInFunction
<< "dimensions of phi are not correct" << "dimensions of phi are not correct"
<< "\n on patch " << patch().name() << "\n on patch " << patch().name()
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -148,7 +148,7 @@ void Foam::fixedFluxPressureFvPatchScalarField::updateCoeffs()
if (curTimeIndex_ != this->db().time().timeIndex()) if (curTimeIndex_ != this->db().time().timeIndex())
{ {
FatalErrorIn("fixedFluxPressureFvPatchScalarField::updateCoeffs()") FatalErrorInFunction
<< "updateCoeffs(const scalarField& snGradp) MUST be called before" << "updateCoeffs(const scalarField& snGradp) MUST be called before"
" updateCoeffs() or evaluate() to set the boundary gradient." " updateCoeffs() or evaluate() to set the boundary gradient."
<< exit(FatalError); << exit(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -88,12 +88,8 @@ flowRateInletVelocityFvPatchVectorField
} }
else else
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"flowRateInletVelocityFvPatchVectorField::"
"flowRateInletVelocityFvPatchVectorField"
"(const fvPatch&, const DimensionedField<vector, volMesh>&,"
" const dictionary&)",
dict dict
) << "Please supply either 'volumetricFlowRate' or" ) << "Please supply either 'volumetricFlowRate' or"
<< " 'massFlowRate' and 'rho'" << exit(FatalIOError); << " 'massFlowRate' and 'rho'" << exit(FatalIOError);
@ -179,10 +175,8 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs()
// Use constant density // Use constant density
if (rhoInlet_ < 0) if (rhoInlet_ < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Did not find registered density field " << rhoName_
"flowRateInletVelocityFvPatchVectorField::updateCoeffs()"
) << "Did not find registered density field " << rhoName_
<< " and no constant density 'rhoInlet' specified" << " and no constant density 'rhoInlet' specified"
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -124,10 +124,7 @@ void Foam::fluxCorrectedVelocityFvPatchVectorField::evaluate
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
(
"fluxCorrectedVelocityFvPatchVectorField::evaluate()"
)
<< "dimensions of phi are incorrect\n" << "dimensions of phi are incorrect\n"
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -141,7 +141,7 @@ void Foam::freestreamPressureFvPatchScalarField::updateCoeffs()
} }
else else
{ {
FatalErrorIn("freestreamPressureFvPatchScalarField::updateCoeffs()") FatalErrorInFunction
<< "dimensions of phi are not correct" << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -243,10 +243,8 @@ tmp<Field<Type> > mappedPatchFieldBase<Type>::mappedField() const
if (nbrPatchID < 0) if (nbrPatchID < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Unable to find sample patch " << mapper_.samplePatch()
"void mappedPatchFieldBase<Type>::updateCoeffs()"
)<< "Unable to find sample patch " << mapper_.samplePatch()
<< " in region " << mapper_.sampleRegion() << " in region " << mapper_.sampleRegion()
<< " for patch " << patchField_.patch().name() << nl << " for patch " << patchField_.patch().name() << nl
<< abort(FatalError); << abort(FatalError);
@ -284,10 +282,8 @@ tmp<Field<Type> > mappedPatchFieldBase<Type>::mappedField() const
} }
default: default:
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown sampling mode: " << mapper_.mode()
"mappedPatchFieldBase<Type>::updateCoeffs()"
)<< "Unknown sampling mode: " << mapper_.mode()
<< nl << abort(FatalError); << nl << abort(FatalError);
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -121,10 +121,8 @@ void Foam::mappedFixedInternalValueFvPatchField<Type>::updateCoeffs()
{ {
case mappedPatchBase::NEARESTCELL: case mappedPatchBase::NEARESTCELL:
{ {
FatalErrorIn FatalErrorInFunction
( << "Cannot apply "
"void mappedFixedValueFvPatchField<Type>::updateCoeffs()"
) << "Cannot apply "
<< mappedPatchBase::sampleModeNames_ << mappedPatchBase::sampleModeNames_
[ [
mappedPatchBase::NEARESTCELL mappedPatchBase::NEARESTCELL
@ -171,7 +169,7 @@ void Foam::mappedFixedInternalValueFvPatchField<Type>::updateCoeffs()
} }
default: default:
{ {
FatalErrorIn("mappedFixedValueFvPatchField<Type>::updateCoeffs()") FatalErrorInFunction
<< "Unknown sampling mode: " << mpp.mode() << "Unknown sampling mode: " << mpp.mode()
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,10 +107,7 @@ const mappedPatchBase& mappedFixedValueFvPatchField<Type>::mapper
{ {
if (!isA<mappedPatchBase>(p.patch())) if (!isA<mappedPatchBase>(p.patch()))
{ {
FatalErrorIn FatalErrorInFunction
(
"mappedFixedValueFvPatchField<Type>::mapper()"
) << "\n patch type '" << p.patch().type()
<< "' not type '" << mappedPatchBase::typeName << "'" << "' not type '" << mappedPatchBase::typeName << "'"
<< "\n for patch " << p.patch().name() << "\n for patch " << p.patch().name()
<< " of field " << iF.name() << " of field " << iF.name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -165,10 +165,8 @@ void Foam::mappedFlowRateFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of " << phiName_ << " are incorrect" << nl
"mappedFlowRateFvPatchVectorField::updateCoeffs()"
) << "dimensions of " << phiName_ << " are incorrect" << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,17 +59,8 @@ mappedVelocityFluxFixedValueFvPatchField
{ {
if (!isA<mappedPatchBase>(this->patch().patch())) if (!isA<mappedPatchBase>(this->patch().patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Patch type '" << p.type()
"mappedVelocityFluxFixedValueFvPatchField::"
"mappedVelocityFluxFixedValueFvPatchField"
"("
"const mappedVelocityFluxFixedValueFvPatchField&, "
"const fvPatch&, "
"const DimensionedField<vector, volMesh>&, "
"const fvPatchFieldMapper&"
")"
) << "Patch type '" << p.type()
<< "' not type '" << mappedPatchBase::typeName << "'" << "' not type '" << mappedPatchBase::typeName << "'"
<< " for patch " << p.name() << " for patch " << p.name()
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()
@ -92,16 +83,8 @@ mappedVelocityFluxFixedValueFvPatchField
{ {
if (!isA<mappedPatchBase>(this->patch().patch())) if (!isA<mappedPatchBase>(this->patch().patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Patch type '" << p.type()
"mappedVelocityFluxFixedValueFvPatchField::"
"mappedVelocityFluxFixedValueFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<vector, volMesh>&, "
"const dictionary&"
")"
) << "Patch type '" << p.type()
<< "' not type '" << mappedPatchBase::typeName << "'" << "' not type '" << mappedPatchBase::typeName << "'"
<< " for patch " << p.name() << " for patch " << p.name()
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()
@ -115,16 +98,8 @@ mappedVelocityFluxFixedValueFvPatchField
); );
if (mpp.mode() == mappedPolyPatch::NEARESTCELL) if (mpp.mode() == mappedPolyPatch::NEARESTCELL)
{ {
FatalErrorIn FatalErrorInFunction
( << "Patch " << p.name()
"mappedVelocityFluxFixedValueFvPatchField::"
"mappedVelocityFluxFixedValueFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<vector, volMesh>&, "
"const dictionary&"
")"
) << "Patch " << p.name()
<< " of type '" << p.type() << " of type '" << p.type()
<< "' can not be used in 'nearestCell' mode" << "' can not be used in 'nearestCell' mode"
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()
@ -234,11 +209,8 @@ void Foam::mappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
} }
default: default:
{ {
FatalErrorIn FatalErrorInFunction
( << "patch can only be used in NEARESTPATCHFACE, "
"mappedVelocityFluxFixedValueFvPatchField::"
"updateCoeffs()"
) << "patch can only be used in NEARESTPATCHFACE, "
<< "NEARESTPATCHFACEAMI or NEARESTFACE mode" << nl << "NEARESTPATCHFACEAMI or NEARESTFACE mode" << nl
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,10 +126,8 @@ void Foam::outletMappedUniformInletFvPatchField<Type>::updateCoeffs()
if (outletPatchID < 0) if (outletPatchID < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Unable to find outlet patch " << outletPatchName_
"void outletMappedUniformInletFvPatchField<Type>::updateCoeffs()"
) << "Unable to find outlet patch " << outletPatchName_
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -169,11 +169,8 @@ void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"pressureDirectedInletOutletVelocityFvPatchVectorField::"
"updateCoeffs()"
) << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -162,10 +162,8 @@ void Foam::pressureDirectedInletVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"pressureDirectedInletVelocityFvPatchVectorField::updateCoeffs()"
) << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -143,11 +143,8 @@ void Foam::pressureInletOutletParSlipVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct" << nl
"pressureInletOutletParSlipVelocityFvPatchVectorField::"
"updateCoeffs()"
) << "dimensions of phi are not correct" << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -130,7 +130,7 @@ void Foam::pressureInletVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn("pressureInletVelocityFvPatchVectorField::updateCoeffs()") FatalErrorInFunction
<< "dimensions of phi are not correct" << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -139,11 +139,8 @@ void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"pressureNormalInletOutletVelocityFvPatchVectorField::"
"updateCoeffs()"
) << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,11 +107,8 @@ supersonicFreestreamFvPatchVectorField
if (pInf_ < SMALL) if (pInf_ < SMALL)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"supersonicFreestreamFvPatchVectorField::"
"supersonicFreestreamFvPatchVectorField"
"(const fvPatch&, const vectorField&, const dictionary&)",
dict dict
) << " unphysical pInf specified (pInf <= 0.0)" ) << " unphysical pInf specified (pInf <= 0.0)"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
@ -183,10 +180,7 @@ void Foam::supersonicFreestreamFvPatchVectorField::updateCoeffs()
if (MachInf < 1.0) if (MachInf < 1.0)
{ {
FatalErrorIn FatalErrorInFunction
(
"supersonicFreestreamFvPatchVectorField::updateCoeffs()"
) << " MachInf < 1.0, free stream must be supersonic"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()
@ -283,10 +277,8 @@ void Foam::supersonicFreestreamFvPatchVectorField::updateCoeffs()
} }
else // If subsonic else // If subsonic
{ {
FatalErrorIn FatalErrorInFunction
( << "unphysical subsonic inflow has been generated"
"supersonicFreestreamFvPatchVectorField::updateCoeffs()"
) << "unphysical subsonic inflow has been generated"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << " in file "

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -155,10 +155,8 @@ void Foam::swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs()
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of " << phiName_ << " are incorrect" << nl
"swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs()"
) << "dimensions of " << phiName_ << " are incorrect" << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath() << " in file " << this->dimensionedInternalField().objectPath()

View File

@ -213,7 +213,7 @@ void Foam::syringePressureFvPatchScalarField::updateCoeffs()
} }
else else
{ {
FatalErrorIn("syringePressureFvPatchScalarField::updateCoeffs()") FatalErrorInFunction
<< "dimensions of phi are not correct" << "dimensions of phi are not correct"
<< "\n on patch " << this->patch().name() << "\n on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -127,15 +127,8 @@ timeVaryingMappedFixedValueFvPatchField
&& mapMethod_ != "nearest" && mapMethod_ != "nearest"
) )
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"timeVaryingMappedFixedValueFvPatchField<Type>::\n"
"timeVaryingMappedFixedValueFvPatchField\n"
"(\n"
" const fvPatch&\n"
" const DimensionedField<Type, volMesh>&\n"
" const dictionary&\n"
")\n",
dict dict
) << "mapMethod should be one of 'planarInterpolation'" ) << "mapMethod should be one of 'planarInterpolation'"
<< ", 'nearest'" << exit(FatalIOError); << ", 'nearest'" << exit(FatalIOError);
@ -339,10 +332,8 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()
if (!foundTime) if (!foundTime)
{ {
FatalErrorIn FatalErrorInFunction
( << "Cannot find starting sampling values for current time "
"timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()"
) << "Cannot find starting sampling values for current time "
<< this->db().time().value() << nl << this->db().time().value() << nl
<< "Have sampling values for times " << "Have sampling values for times "
<< pointToPointPlanarInterpolation::timeNames(sampleTimes_) << nl << pointToPointPlanarInterpolation::timeNames(sampleTimes_) << nl
@ -405,11 +396,8 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()
if (vals.size() != mapperPtr_().sourceSize()) if (vals.size() != mapperPtr_().sourceSize())
{ {
FatalErrorIn FatalErrorInFunction
( << "Number of values (" << vals.size()
"timeVaryingMappedFixedValueFvPatchField<Type>::"
"checkTable()"
) << "Number of values (" << vals.size()
<< ") differs from the number of points (" << ") differs from the number of points ("
<< mapperPtr_().sourceSize() << mapperPtr_().sourceSize()
<< ") in file " << vals.objectPath() << exit(FatalError); << ") in file " << vals.objectPath() << exit(FatalError);
@ -463,11 +451,8 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()
if (vals.size() != mapperPtr_().sourceSize()) if (vals.size() != mapperPtr_().sourceSize())
{ {
FatalErrorIn FatalErrorInFunction
( << "Number of values (" << vals.size()
"timeVaryingMappedFixedValueFvPatchField<Type>::"
"checkTable()"
) << "Number of values (" << vals.size()
<< ") differs from the number of points (" << ") differs from the number of points ("
<< mapperPtr_().sourceSize() << mapperPtr_().sourceSize()
<< ") in file " << vals.objectPath() << exit(FatalError); << ") in file " << vals.objectPath() << exit(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -204,10 +204,8 @@ void Foam::totalPressureFvPatchScalarField::updateCoeffs
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << " rho or psi set inconsistently, rho = " << rhoName_
"totalPressureFvPatchScalarField::updateCoeffs()"
) << " rho or psi set inconsistently, rho = " << rhoName_
<< ", psi = " << psiName_ << ".\n" << ", psi = " << psiName_ << ".\n"
<< " Set either rho or psi or neither depending on the " << " Set either rho or psi or neither depending on the "
"definition of total pressure." << nl "definition of total pressure." << nl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -77,16 +77,8 @@ turbulentIntensityKineticEnergyInletFvPatchScalarField
if (intensity_ < 0 || intensity_ > 1) if (intensity_ < 0 || intensity_ > 1)
{ {
FatalErrorIn FatalErrorInFunction
( << "Turbulence intensity should be specified as a fraction 0-1 "
"turbulentIntensityKineticEnergyInletFvPatchScalarField::"
"turbulentIntensityKineticEnergyInletFvPatchScalarField"
"("
"const fvPatch&, "
"const DimensionedField<scalar, volMesh>&, "
"const dictionary&"
")"
) << "Turbulence intensity should be specified as a fraction 0-1 "
"of the mean velocity\n" "of the mean velocity\n"
" value given is " << intensity_ << nl " value given is " << intensity_ << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -199,7 +199,7 @@ void Foam::uniformTotalPressureFvPatchScalarField::updateCoeffs
} }
else else
{ {
FatalErrorIn("uniformTotalPressureFvPatchScalarField::updateCoeffs()") FatalErrorInFunction
<< " rho or psi set inconsitently, rho = " << rhoName_ << " rho or psi set inconsitently, rho = " << rhoName_
<< ", psi = " << psiName_ << ".\n" << ", psi = " << psiName_ << ".\n"
<< " Set either rho or psi or neither depending on the " << " Set either rho or psi or neither depending on the "

View File

@ -208,10 +208,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
} }
default: default:
{ {
FatalErrorIn FatalErrorInFunction
(
"waveSurfacePressureFvPatchScalarField<Type>::updateCoeffs()"
) << " Unsupported temporal differencing scheme : "
<< ddtSchemeName << nl << ddtSchemeName << nl
<< " on patch " << this->patch().name() << " on patch " << this->patch().name()
<< " of field " << this->dimensionedInternalField().name() << " of field " << this->dimensionedInternalField().name()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -135,15 +135,8 @@ Foam::fvPatchField<Type>::fvPatchField
} }
else else
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvPatchField<Type>::fvPatchField"
"("
"const fvPatch& p,"
"const DimensionedField<Type, volMesh>& iF,"
"const dictionary& dict,"
"const bool valueRequired"
")",
dict dict
) << "Essential entry 'value' missing" ) << "Essential entry 'value' missing"
<< exit(FatalIOError); << exit(FatalIOError);
@ -196,7 +189,7 @@ void Foam::fvPatchField<Type>::check(const fvPatchField<Type>& ptf) const
{ {
if (&patch_ != &(ptf.patch_)) if (&patch_ != &(ptf.patch_))
{ {
FatalErrorIn("PatchField<Type>::check(const fvPatchField<Type>&)") FatalErrorInFunction
<< "different patches for fvPatchField<Type>s" << "different patches for fvPatchField<Type>s"
<< abort(FatalError); << abort(FatalError);
} }
@ -433,10 +426,8 @@ void Foam::fvPatchField<Type>::operator*=
{ {
if (&patch_ != &ptf.patch()) if (&patch_ != &ptf.patch())
{ {
FatalErrorIn FatalErrorInFunction
( << "incompatible patches for patch fields"
"PatchField<Type>::operator*=(const fvPatchField<scalar>& ptf)"
) << "incompatible patches for patch fields"
<< abort(FatalError); << abort(FatalError);
} }
@ -452,10 +443,7 @@ void Foam::fvPatchField<Type>::operator/=
{ {
if (&patch_ != &ptf.patch()) if (&patch_ != &ptf.patch())
{ {
FatalErrorIn FatalErrorInFunction
(
"PatchField<Type>::operator/=(const fvPatchField<scalar>& ptf)"
) << " incompatible patches for patch fields"
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,11 +49,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
if (cstrIter == patchConstructorTablePtr_->end()) if (cstrIter == patchConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown patchField type "
"fvPatchField<Type>::New(const word&, const word&, const fvPatch&,"
"const DimensionedField<Type, volMesh>&)"
) << "Unknown patchField type "
<< patchFieldType << nl << nl << patchFieldType << nl << nl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl
<< patchConstructorTablePtr_->sortedToc() << patchConstructorTablePtr_->sortedToc()
@ -134,11 +131,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvPatchField<Type>::New(const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&)",
dict dict
) << "Unknown patchField type " << patchFieldType ) << "Unknown patchField type " << patchFieldType
<< " for patch type " << p.type() << nl << nl << " for patch type " << p.type() << nl << nl
@ -163,11 +157,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
&& patchTypeCstrIter() != cstrIter() && patchTypeCstrIter() != cstrIter()
) )
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvPatchField<Type>::New(const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&)",
dict dict
) << "inconsistent patch and patchField types for \n" ) << "inconsistent patch and patchField types for \n"
" patch type " << p.type() " patch type " << p.type()
@ -203,12 +194,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
if (cstrIter == patchMapperConstructorTablePtr_->end()) if (cstrIter == patchMapperConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown patchField type " << ptf.type() << nl << nl
"fvPatchField<Type>::New(const fvPatchField<Type>&, "
"const fvPatch&, const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&)"
) << "Unknown patchField type " << ptf.type() << nl << nl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl
<< patchMapperConstructorTablePtr_->sortedToc() << patchMapperConstructorTablePtr_->sortedToc()
<< exit(FatalError); << exit(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,16 +58,8 @@ cyclicFvsPatchField<Type>::cyclicFvsPatchField
{ {
if (!isA<cyclicFvPatch>(this->patch())) if (!isA<cyclicFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"cyclicFvsPatchField<Type>::cyclicFvsPatchField\n"
"(\n"
" const cyclicFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -89,14 +81,8 @@ cyclicFvsPatchField<Type>::cyclicFvsPatchField
{ {
if (!isA<cyclicFvPatch>(p)) if (!isA<cyclicFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicFvsPatchField<Type>::cyclicFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not cyclic type. " ) << "patch " << this->patch().index() << " not cyclic type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,16 +53,8 @@ Foam::cyclicACMIFvsPatchField<Type>::cyclicACMIFvsPatchField
{ {
if (!isA<cyclicACMIFvPatch>(this->patch())) if (!isA<cyclicACMIFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"cyclicACMIFvsPatchField<Type>::cyclicACMIFvsPatchField\n"
"("
"const cyclicACMIFvsPatchField<Type>&, "
"const fvPatch&, "
"const DimensionedField<Type, surfaceMesh>&, "
"const fvPatchFieldMapper&"
")"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -84,14 +76,8 @@ Foam::cyclicACMIFvsPatchField<Type>::cyclicACMIFvsPatchField
{ {
if (!isA<cyclicACMIFvPatch>(p)) if (!isA<cyclicACMIFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicACMIFvsPatchField<Type>::cyclicACMIFvsPatchField"
"("
"const fvPatch&, "
"const Field<Type>&, "
"const dictionary&"
")",
dict dict
) << "patch " << this->patch().index() << " not cyclicACMI type. " ) << "patch " << this->patch().index() << " not cyclicACMI type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,16 +53,8 @@ Foam::cyclicAMIFvsPatchField<Type>::cyclicAMIFvsPatchField
{ {
if (!isA<cyclicAMIFvPatch>(this->patch())) if (!isA<cyclicAMIFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"cyclicAMIFvsPatchField<Type>::cyclicAMIFvsPatchField\n"
"("
"const cyclicAMIFvsPatchField<Type>&, "
"const fvPatch&, "
"const DimensionedField<Type, surfaceMesh>&, "
"const fvPatchFieldMapper&"
")"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -84,14 +76,8 @@ Foam::cyclicAMIFvsPatchField<Type>::cyclicAMIFvsPatchField
{ {
if (!isA<cyclicAMIFvPatch>(p)) if (!isA<cyclicAMIFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cyclicAMIFvsPatchField<Type>::cyclicAMIFvsPatchField"
"("
"const fvPatch&, "
"const Field<Type>&, "
"const dictionary&"
")",
dict dict
) << "patch " << this->patch().index() << " not cyclicAMI type. " ) << "patch " << this->patch().index() << " not cyclicAMI type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,16 +58,8 @@ emptyFvsPatchField<Type>::emptyFvsPatchField
{ {
if (!isType<emptyFvPatch>(this->patch())) if (!isType<emptyFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"emptyFvsPatchField<Type>::emptyFvsPatchField\n"
"(\n"
" const emptyFvsPatchField<Type>&,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -88,14 +80,8 @@ emptyFvsPatchField<Type>::emptyFvsPatchField
{ {
if (!isType<emptyFvPatch>(p)) if (!isType<emptyFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"emptyFvsPatchField<Type>::emptyFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not empty type. " ) << "patch " << this->patch().index() << " not empty type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,16 +72,8 @@ processorFvsPatchField<Type>::processorFvsPatchField
{ {
if (!isType<processorFvPatch>(this->patch())) if (!isType<processorFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"processorFvsPatchField<Type>::processorFvsPatchField\n"
"(\n"
" const processorFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -103,14 +95,8 @@ processorFvsPatchField<Type>::processorFvsPatchField
{ {
if (!isType<processorFvPatch>(p)) if (!isType<processorFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"processorFvsPatchField<Type>::processorFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not processor type. " ) << "patch " << this->patch().index() << " not processor type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,16 +72,8 @@ processorCyclicFvsPatchField<Type>::processorCyclicFvsPatchField
{ {
if (!isType<processorCyclicFvPatch>(this->patch())) if (!isType<processorCyclicFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"processorCyclicFvsPatchField<Type>::processorCyclicFvsPatchField\n"
"(\n"
" const processorCyclicFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -103,14 +95,8 @@ processorCyclicFvsPatchField<Type>::processorCyclicFvsPatchField
{ {
if (!isType<processorCyclicFvPatch>(p)) if (!isType<processorCyclicFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"processorCyclicFvsPatchField<Type>::processorCyclicFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not processor type. " ) << "patch " << this->patch().index() << " not processor type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,8 @@ symmetryFvsPatchField<Type>::symmetryFvsPatchField
{ {
if (!isType<symmetryFvPatch>(this->patch())) if (!isType<symmetryFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
"(\n"
" const symmetryFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -86,14 +78,8 @@ symmetryFvsPatchField<Type>::symmetryFvsPatchField
{ {
if (!isType<symmetryFvPatch>(p)) if (!isType<symmetryFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not symmetry type. " ) << "patch " << this->patch().index() << " not symmetry type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,8 @@ symmetryPlaneFvsPatchField<Type>::symmetryPlaneFvsPatchField
{ {
if (!isType<symmetryPlaneFvPatch>(this->patch())) if (!isType<symmetryPlaneFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"symmetryPlaneFvsPatchField<Type>::symmetryPlaneFvsPatchField\n"
"(\n"
" const symmetryPlaneFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -86,14 +78,8 @@ symmetryPlaneFvsPatchField<Type>::symmetryPlaneFvsPatchField
{ {
if (!isType<symmetryPlaneFvPatch>(p)) if (!isType<symmetryPlaneFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"symmetryPlaneFvsPatchField<Type>::symmetryPlaneFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not symmetryPlane type. " ) << "patch " << this->patch().index() << " not symmetryPlane type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,16 +56,8 @@ wedgeFvsPatchField<Type>::wedgeFvsPatchField
{ {
if (!isType<wedgeFvPatch>(this->patch())) if (!isType<wedgeFvPatch>(this->patch()))
{ {
FatalErrorIn FatalErrorInFunction
( << "Field type does not correspond to patch type for patch "
"wedgeFvsPatchField<Type>::wedgeFvsPatchField\n"
"(\n"
" const wedgeFvsPatchField<Type>& ptf,\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const fvPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl << this->patch().index() << "." << endl
<< "Field type: " << typeName << endl << "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type() << "Patch type: " << this->patch().type()
@ -86,14 +78,8 @@ wedgeFvsPatchField<Type>::wedgeFvsPatchField
{ {
if (!isType<wedgeFvPatch>(p)) if (!isType<wedgeFvPatch>(p))
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"wedgeFvsPatchField<Type>::wedgeFvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" dictionary& dict\n"
")\n",
dict dict
) << "patch " << this->patch().index() << " not wedge type. " ) << "patch " << this->patch().index() << " not wedge type. "
<< "Patch type = " << p.type() << "Patch type = " << p.type()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -98,14 +98,8 @@ fvsPatchField<Type>::fvsPatchField
} }
else else
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvsPatchField<Type>::fvsPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, surfaceMesh>& iF,\n"
" const dictionary& dict\n"
")\n",
dict dict
) << "essential value entry not provided" ) << "essential value entry not provided"
<< exit(FatalIOError); << exit(FatalIOError);
@ -152,7 +146,7 @@ void fvsPatchField<Type>::check(const fvsPatchField<Type>& ptf) const
{ {
if (&patch_ != &(ptf.patch_)) if (&patch_ != &(ptf.patch_))
{ {
FatalErrorIn("PatchField<Type>::check(const fvsPatchField<Type>&)") FatalErrorInFunction
<< "different patches for fvsPatchField<Type>s" << "different patches for fvsPatchField<Type>s"
<< abort(FatalError); << abort(FatalError);
} }
@ -244,10 +238,8 @@ void fvsPatchField<Type>::operator*=
{ {
if (&patch_ != &ptf.patch()) if (&patch_ != &ptf.patch())
{ {
FatalErrorIn FatalErrorInFunction
( << "incompatible patches for patch fields"
"PatchField<Type>::operator*=(const fvsPatchField<scalar>& ptf)"
) << "incompatible patches for patch fields"
<< abort(FatalError); << abort(FatalError);
} }
@ -263,10 +255,7 @@ void fvsPatchField<Type>::operator/=
{ {
if (&patch_ != &ptf.patch()) if (&patch_ != &ptf.patch())
{ {
FatalErrorIn FatalErrorInFunction
(
"PatchField<Type>::operator/=(const fvsPatchField<scalar>& ptf)"
) << " incompatible patches for patch fields"
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -52,11 +52,8 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
if (cstrIter == patchConstructorTablePtr_->end()) if (cstrIter == patchConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown patchField type "
"fvsPatchField<Type>::New(const word&, const word&, const fvPatch&"
", const Field<Type>&)"
) << "Unknown patchField type "
<< patchFieldType << nl << nl << patchFieldType << nl << nl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl
<< patchConstructorTablePtr_->sortedToc() << patchConstructorTablePtr_->sortedToc()
@ -130,10 +127,8 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvsPatchField<Type>::New(const fvPatch&, const Field<Type>&, "
"const dictionary&)",
dict dict
) << "Unknown patchField type " << patchFieldType ) << "Unknown patchField type " << patchFieldType
<< " for patch type " << p.type() << nl << nl << " for patch type " << p.type() << nl << nl
@ -158,10 +153,8 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
&& patchTypeCstrIter() != cstrIter() && patchTypeCstrIter() != cstrIter()
) )
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvsPatchField<Type>const fvPatch&, const Field<Type>&, "
"const dictionary&)",
dict dict
) << "inconsistent patch and patchField types for \n" ) << "inconsistent patch and patchField types for \n"
" patch type " << p.type() " patch type " << p.type()
@ -199,12 +192,8 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
if (cstrIter == patchMapperConstructorTablePtr_->end()) if (cstrIter == patchMapperConstructorTablePtr_->end())
{ {
FatalErrorIn FatalErrorInFunction
( << "Unknown patchField type " << ptf.type() << nl << nl
"fvsPatchField<Type>::New(const fvsPatchField<Type>&, "
"const fvPatch&, const Field<Type>&, "
"const fvPatchFieldMapper&)"
) << "Unknown patchField type " << ptf.type() << nl << nl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl
<< patchMapperConstructorTablePtr_->sortedToc() << patchMapperConstructorTablePtr_->sortedToc()
<< exit(FatalError); << exit(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,10 +71,8 @@ tmp<convectionScheme<Type> > convectionScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"convectionScheme<Type>::New"
"(const fvMesh&, const surfaceScalarField&, Istream&)",
schemeData schemeData
) << "Convection scheme not specified" << endl << endl ) << "Convection scheme not specified" << endl << endl
<< "Valid convection schemes are :" << endl << "Valid convection schemes are :" << endl
@ -89,10 +87,8 @@ tmp<convectionScheme<Type> > convectionScheme<Type>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"convectionScheme<Type>::New"
"(const fvMesh&, const surfaceScalarField&, Istream&)",
schemeData schemeData
) << "Unknown convection scheme " << schemeName << nl << nl ) << "Unknown convection scheme " << schemeName << nl << nl
<< "Valid convection schemes are :" << endl << "Valid convection schemes are :" << endl
@ -126,12 +122,8 @@ tmp<convectionScheme<Type> > convectionScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"convectionScheme<Type>::New"
"(const fvMesh&, "
"const typename multivariateSurfaceInterpolationScheme<Type>"
"::fieldTable&, const surfaceScalarField&, Istream&)",
schemeData schemeData
) << "Convection scheme not specified" << endl << endl ) << "Convection scheme not specified" << endl << endl
<< "Valid convection schemes are :" << endl << "Valid convection schemes are :" << endl
@ -146,12 +138,8 @@ tmp<convectionScheme<Type> > convectionScheme<Type>::New
if (cstrIter == MultivariateConstructorTablePtr_->end()) if (cstrIter == MultivariateConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"convectionScheme<Type>::New"
"(const fvMesh&, "
"const typename multivariateSurfaceInterpolationScheme<Type>"
"::fieldTable&, const surfaceScalarField&, Istream&)",
schemeData schemeData
) << "Unknown convection scheme " << schemeName << nl << nl ) << "Unknown convection scheme " << schemeName << nl << nl
<< "Valid convection schemes are :" << endl << "Valid convection schemes are :" << endl
@ -177,10 +165,8 @@ void convectionScheme<Type>::operator=(const convectionScheme<Type>& cs)
{ {
if (this == &cs) if (this == &cs)
{ {
FatalErrorIn FatalErrorInFunction
( << "attempted assignment to self"
"convectionScheme<Type>::operator=(const convectionScheme<Type>&)"
) << "attempted assignment to self"
<< abort(FatalError); << abort(FatalError);
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -120,7 +120,7 @@ public:
{ {
fileNameList controlDictFiles(findEtcFiles("controlDict")); fileNameList controlDictFiles(findEtcFiles("controlDict"));
IOWarningIn("gaussConvectionScheme", is) IOWarningInFunction(is)
<< "Unbounded 'Gauss' div scheme used in " << "Unbounded 'Gauss' div scheme used in "
"steady-state solver, use 'bounded Gauss' " "steady-state solver, use 'bounded Gauss' "
"to ensure boundedness.\n" "to ensure boundedness.\n"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,9 +57,8 @@ tmp<d2dt2Scheme<Type> > d2dt2Scheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"d2dt2Scheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "D2dt2 scheme not specified" << endl << endl ) << "D2dt2 scheme not specified" << endl << endl
<< "Valid d2dt2 schemes are :" << endl << "Valid d2dt2 schemes are :" << endl
@ -74,9 +73,8 @@ tmp<d2dt2Scheme<Type> > d2dt2Scheme<Type>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"d2dt2Scheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Unknown d2dt2 scheme " << schemeName << nl << nl ) << "Unknown d2dt2 scheme " << schemeName << nl << nl
<< "Valid d2dt2 schemes are :" << endl << "Valid d2dt2 schemes are :" << endl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -141,7 +141,7 @@ tmp<surfaceScalarField> CoEulerDdtScheme<Type>::CofrDeltaT() const
} }
else else
{ {
FatalErrorIn("CoEulerDdtScheme<Type>::CofrDeltaT() const") FatalErrorInFunction
<< "Incorrect dimensions of phi: " << phi.dimensions() << "Incorrect dimensions of phi: " << phi.dimensions()
<< abort(FatalError); << abort(FatalError);
@ -717,10 +717,8 @@ CoEulerDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of Uf are not correct"
"CoEulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of Uf are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -781,10 +779,8 @@ CoEulerDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"CoEulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -1323,10 +1323,8 @@ CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of Uf are not correct"
"CrankNicolsonDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of Uf are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -1420,10 +1418,8 @@ CrankNicolsonDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"CrankNicolsonDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -208,9 +208,8 @@ public:
{ {
if (ocCoeff_ < 0 || ocCoeff_ > 1) if (ocCoeff_ < 0 || ocCoeff_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"CrankNicolsonDdtScheme(const fvMesh& mesh, Istream& is)",
is is
) << "Off-centreing coefficient = " << ocCoeff_ ) << "Off-centreing coefficient = " << ocCoeff_
<< " should be >= 0 and <= 1" << " should be >= 0 and <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -606,10 +606,8 @@ EulerDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of Uf are not correct"
"EulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of Uf are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -670,10 +668,8 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"EulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -139,7 +139,7 @@ tmp<volScalarField> SLTSDdtScheme<Type>::SLrDeltaT() const
} }
else else
{ {
FatalErrorIn("SLTSDdtScheme<Type>::CofrDeltaT() const") FatalErrorInFunction
<< "Incorrect dimensions of phi: " << phi.dimensions() << "Incorrect dimensions of phi: " << phi.dimensions()
<< abort(FatalError); << abort(FatalError);
} }
@ -719,10 +719,8 @@ SLTSDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of Uf are not correct"
"SLTSDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of Uf are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -783,10 +781,8 @@ SLTSDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"SLTSDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -828,10 +828,8 @@ backwardDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"backwardDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -906,10 +904,8 @@ backwardDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"backwardDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -57,9 +57,8 @@ tmp<ddtScheme<Type> > ddtScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"ddtScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Ddt scheme not specified" << endl << endl ) << "Ddt scheme not specified" << endl << endl
<< "Valid ddt schemes are :" << endl << "Valid ddt schemes are :" << endl
@ -74,9 +73,8 @@ tmp<ddtScheme<Type> > ddtScheme<Type>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"ddtScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Unknown ddt scheme " << schemeName << nl << nl ) << "Unknown ddt scheme " << schemeName << nl << nl
<< "Valid ddt schemes are :" << endl << "Valid ddt schemes are :" << endl

View File

@ -613,10 +613,8 @@ localEulerDdtScheme<Type>::fvcDdtUfCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of Uf are not correct"
"localEulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of Uf are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();
@ -677,10 +675,8 @@ localEulerDdtScheme<Type>::fvcDdtPhiCorr
} }
else else
{ {
FatalErrorIn FatalErrorInFunction
( << "dimensions of phi are not correct"
"localEulerDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError); << abort(FatalError);
return fluxFieldType::null(); return fluxFieldType::null();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,9 +58,8 @@ tmp<divScheme<Type> > divScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"divScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Div scheme not specified" << endl << endl ) << "Div scheme not specified" << endl << endl
<< "Valid div schemes are :" << endl << "Valid div schemes are :" << endl
@ -75,9 +74,8 @@ tmp<divScheme<Type> > divScheme<Type>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"divScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "unknown div scheme " ) << "unknown div scheme "
<< schemeName << nl << nl << schemeName << nl << nl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -46,10 +46,8 @@ Foam::tmp<Foam::fv::gradScheme<Type> > Foam::fv::gradScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"gradScheme<Type>::New"
"(const fvMesh& mesh, Istream& schemeData)",
schemeData schemeData
) << "Grad scheme not specified" << endl << endl ) << "Grad scheme not specified" << endl << endl
<< "Valid grad schemes are :" << endl << "Valid grad schemes are :" << endl
@ -64,10 +62,8 @@ Foam::tmp<Foam::fv::gradScheme<Type> > Foam::fv::gradScheme<Type>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"gradScheme<Type>::New"
"(const fvMesh& mesh, Istream& schemeData)",
schemeData schemeData
) << "Unknown grad scheme " << schemeName << nl << nl ) << "Unknown grad scheme " << schemeName << nl << nl
<< "Valid grad schemes are :" << endl << "Valid grad schemes are :" << endl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -95,9 +95,8 @@ public:
{ {
if (k_ < 0 || k_ > 1) if (k_ < 0 || k_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cellLimitedGrad(const fvMesh&, Istream& schemeData)",
schemeData schemeData
) << "coefficient = " << k_ ) << "coefficient = " << k_
<< " should be >= 0 and <= 1" << " should be >= 0 and <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -95,9 +95,8 @@ public:
{ {
if (k_ < 0 || k_ > 1) if (k_ < 0 || k_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"cellMDLimitedGrad(const fvMesh&, Istream& schemeData)",
schemeData schemeData
) << "coefficient = " << k_ ) << "coefficient = " << k_
<< " should be >= 0 and <= 1" << " should be >= 0 and <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,9 +104,8 @@ public:
{ {
if (k_ < 0 || k_ > 1) if (k_ < 0 || k_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"faceLimitedGrad(const fvMesh&, Istream& schemeData)",
schemeData schemeData
) << "coefficient = " << k_ ) << "coefficient = " << k_
<< " should be >= 0 and <= 1" << " should be >= 0 and <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,9 +104,8 @@ public:
{ {
if (k_ < 0 || k_ > 1) if (k_ < 0 || k_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"faceMDLimitedGrad(const fvMesh&, Istream& schemeData)",
schemeData schemeData
) << "coefficient = " << k_ ) << "coefficient = " << k_
<< " should be >= 0 and <= 1" << " should be >= 0 and <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,9 +56,8 @@ tmp<laplacianScheme<Type, GType> > laplacianScheme<Type, GType>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"laplacianScheme<Type, GType>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Laplacian scheme not specified" << endl << endl ) << "Laplacian scheme not specified" << endl << endl
<< "Valid laplacian schemes are :" << endl << "Valid laplacian schemes are :" << endl
@ -73,9 +72,8 @@ tmp<laplacianScheme<Type, GType> > laplacianScheme<Type, GType>::New
if (cstrIter == IstreamConstructorTablePtr_->end()) if (cstrIter == IstreamConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"laplacianScheme<Type, GType>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Unknown laplacian scheme " << schemeName << nl << nl ) << "Unknown laplacian scheme " << schemeName << nl << nl
<< "Valid laplacian schemes are :" << endl << "Valid laplacian schemes are :" << endl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -156,11 +156,8 @@ void Foam::CentredFitSnGradData<Polynomial>::calcFit
// (not good fit so increase weight in the centre and weight // (not good fit so increase weight in the centre and weight
// for constant and linear terms) // for constant and linear terms)
WarningIn WarningInFunction
( << "Cannot fit face " << facei << " iteration " << iIt
"CentredFitSnGradData<Polynomial>::calcFit"
"(const List<point>& C, const label facei"
) << "Cannot fit face " << facei << " iteration " << iIt
<< " with sum of weights " << sum(coeffsi) << nl << " with sum of weights " << sum(coeffsi) << nl
<< " Weights " << coeffsi << nl << " Weights " << coeffsi << nl
<< " Linear weights " << wLin << " " << 1 - wLin << nl << " Linear weights " << wLin << " " << 1 - wLin << nl
@ -198,10 +195,8 @@ void Foam::CentredFitSnGradData<Polynomial>::calcFit
} }
else else
{ {
WarningIn WarningInFunction
( << "Could not fit face " << facei
"CentredFitSnGradData<Polynomial>::calcFit(..)"
) << "Could not fit face " << facei
<< " Coefficients = " << coeffsi << " Coefficients = " << coeffsi
<< ", reverting to uncorrected." << endl; << ", reverting to uncorrected." << endl;

View File

@ -135,9 +135,8 @@ public:
{ {
if (limitCoeff_ < 0 || limitCoeff_ > 1) if (limitCoeff_ < 0 || limitCoeff_ > 1)
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"limitedSnGrad(const fvMesh& mesh, Istream& schemeData) : ",
schemeData schemeData
) << "limitCoeff is specified as " << limitCoeff_ ) << "limitCoeff is specified as " << limitCoeff_
<< " but should be >= 0 && <= 1" << " but should be >= 0 && <= 1"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,9 +57,8 @@ tmp<snGradScheme<Type> > snGradScheme<Type>::New
if (schemeData.eof()) if (schemeData.eof())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"snGradScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Discretisation scheme not specified" ) << "Discretisation scheme not specified"
<< endl << endl << endl << endl
@ -75,9 +74,8 @@ tmp<snGradScheme<Type> > snGradScheme<Type>::New
if (constructorIter == MeshConstructorTablePtr_->end()) if (constructorIter == MeshConstructorTablePtr_->end())
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"snGradScheme<Type>::New(const fvMesh&, Istream&)",
schemeData schemeData
) << "Unknown discretisation scheme " ) << "Unknown discretisation scheme "
<< schemeName << nl << nl << schemeName << nl << nl

View File

@ -43,11 +43,8 @@ void Foam::fvMatrix<Type>::addToInternalField
{ {
if (addr.size() != pf.size()) if (addr.size() != pf.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "sizes of addressing and field are different"
"fvMatrix<Type>::addToInternalField(const labelUList&, "
"const Field&, Field&)"
) << "sizes of addressing and field are different"
<< abort(FatalError); << abort(FatalError);
} }
@ -83,11 +80,8 @@ void Foam::fvMatrix<Type>::subtractFromInternalField
{ {
if (addr.size() != pf.size()) if (addr.size() != pf.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "sizes of addressing and field are different"
"fvMatrix<Type>::addToInternalField(const labelUList&, "
"const Field&, Field&)"
) << "sizes of addressing and field are different"
<< abort(FatalError); << abort(FatalError);
} }
@ -531,7 +525,7 @@ void Foam::fvMatrix<Type>::relax(const scalar alpha)
if (debug) if (debug)
{ {
InfoIn("fvMatrix<Type>::relax(const scalar alpha)") InfoInFunction
<< "Relaxing " << psi_.name() << " by " << alpha << "Relaxing " << psi_.name() << " by " << alpha
<< endl; << endl;
} }
@ -622,7 +616,7 @@ void Foam::fvMatrix<Type>::relax(const scalar alpha)
psi_.mesh().comm() psi_.mesh().comm()
); );
InfoIn("fvMatrix<Type>::relax(const scalar alpha)") InfoInFunction
<< "Matrix dominance test for " << psi_.name() << nl << "Matrix dominance test for " << psi_.name() << nl
<< " number of non-dominant cells : " << nNon << nl << " number of non-dominant cells : " << nNon << nl
<< " maximum relative non-dominance : " << maxNon << nl << " maximum relative non-dominance : " << maxNon << nl
@ -880,7 +874,7 @@ flux() const
{ {
if (!psi_.mesh().fluxRequired(psi_.name())) if (!psi_.mesh().fluxRequired(psi_.name()))
{ {
FatalErrorIn("fvMatrix<Type>::flux()") FatalErrorInFunction
<< "flux requested but " << psi_.name() << "flux requested but " << psi_.name()
<< " not specified in the fluxRequired sub-dictionary" << " not specified in the fluxRequired sub-dictionary"
" of fvSchemes." " of fvSchemes."
@ -964,14 +958,14 @@ void Foam::fvMatrix<Type>::operator=(const fvMatrix<Type>& fvmv)
{ {
if (this == &fvmv) if (this == &fvmv)
{ {
FatalErrorIn("fvMatrix<Type>::operator=(const fvMatrix<Type>&)") FatalErrorInFunction
<< "attempted assignment to self" << "attempted assignment to self"
<< abort(FatalError); << abort(FatalError);
} }
if (&psi_ != &(fvmv.psi_)) if (&psi_ != &(fvmv.psi_))
{ {
FatalErrorIn("fvMatrix<Type>::operator=(const fvMatrix<Type>&)") FatalErrorInFunction
<< "different fields" << "different fields"
<< abort(FatalError); << abort(FatalError);
} }
@ -1209,11 +1203,8 @@ void Foam::fvMatrix<Type>::operator*=
if (faceFluxCorrectionPtr_) if (faceFluxCorrectionPtr_)
{ {
FatalErrorIn FatalErrorInFunction
( << "cannot scale a matrix containing a faceFluxCorrection"
"fvMatrix<Type>::operator*="
"(const DimensionedField<scalar, volMesh>&)"
) << "cannot scale a matrix containing a faceFluxCorrection"
<< abort(FatalError); << abort(FatalError);
} }
} }
@ -1272,10 +1263,8 @@ void Foam::checkMethod
{ {
if (&fvm1.psi() != &fvm2.psi()) if (&fvm1.psi() != &fvm2.psi())
{ {
FatalErrorIn FatalErrorInFunction
( << "incompatible fields for operation "
"checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)"
) << "incompatible fields for operation "
<< endl << " " << endl << " "
<< "[" << fvm1.psi().name() << "] " << "[" << fvm1.psi().name() << "] "
<< op << op
@ -1285,10 +1274,8 @@ void Foam::checkMethod
if (dimensionSet::debug && fvm1.dimensions() != fvm2.dimensions()) if (dimensionSet::debug && fvm1.dimensions() != fvm2.dimensions())
{ {
FatalErrorIn FatalErrorInFunction
( << "incompatible dimensions for operation "
"checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)"
) << "incompatible dimensions for operation "
<< endl << " " << endl << " "
<< "[" << fvm1.psi().name() << fvm1.dimensions()/dimVolume << " ] " << "[" << fvm1.psi().name() << fvm1.dimensions()/dimVolume << " ] "
<< op << op
@ -1308,11 +1295,7 @@ void Foam::checkMethod
{ {
if (dimensionSet::debug && fvm.dimensions()/dimVolume != df.dimensions()) if (dimensionSet::debug && fvm.dimensions()/dimVolume != df.dimensions())
{ {
FatalErrorIn FatalErrorInFunction
(
"checkMethod(const fvMatrix<Type>&, const GeometricField<Type, "
"fvPatchField, volMesh>&)"
) << "incompatible dimensions for operation "
<< endl << " " << endl << " "
<< "[" << fvm.psi().name() << fvm.dimensions()/dimVolume << " ] " << "[" << fvm.psi().name() << fvm.dimensions()/dimVolume << " ] "
<< op << op
@ -1332,10 +1315,8 @@ void Foam::checkMethod
{ {
if (dimensionSet::debug && fvm.dimensions()/dimVolume != dt.dimensions()) if (dimensionSet::debug && fvm.dimensions()/dimVolume != dt.dimensions())
{ {
FatalErrorIn FatalErrorInFunction
( << "incompatible dimensions for operation "
"checkMethod(const fvMatrix<Type>&, const dimensioned<Type>&)"
) << "incompatible dimensions for operation "
<< endl << " " << endl << " "
<< "[" << fvm.psi().name() << fvm.dimensions()/dimVolume << " ] " << "[" << fvm.psi().name() << fvm.dimensions()/dimVolume << " ] "
<< op << op

View File

@ -87,9 +87,8 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::solve
} }
else else
{ {
FatalIOErrorIn FatalIOErrorInFunction
( (
"fvMatrix<Type>::solve(const dictionary& solverControls)",
solverControls solverControls
) << "Unknown type " << type ) << "Unknown type " << type
<< "; currently supported solver types are segregated and coupled" << "; currently supported solver types are segregated and coupled"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,11 +43,8 @@ Foam::extendedCellToCellStencil::extendedCellToCellStencil(const polyMesh& mesh)
if (!cpp.parallel() || cpp.separated()) if (!cpp.parallel() || cpp.separated())
{ {
FatalErrorIn FatalErrorInFunction
( << "Coupled patches with transformations not supported."
"extendedCellToCellStencil::extendedCellToCellStencil"
"(const polyMesh&)"
) << "Coupled patches with transformations not supported."
<< endl << endl
<< "Problematic patch " << cpp.name() << exit(FatalError); << "Problematic patch " << cpp.name() << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -123,7 +123,7 @@ void Foam::cellToCellStencil::merge
if (resultI != result.size()) if (resultI != result.size())
{ {
FatalErrorIn("cellToCellStencil::merge(..)") FatalErrorInFunction
<< "problem" << abort(FatalError); << "problem" << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -113,11 +113,8 @@ Foam::extendedCellToFaceStencil::extendedCellToFaceStencil(const polyMesh& mesh)
if (!cpp.parallel() || cpp.separated()) if (!cpp.parallel() || cpp.separated())
{ {
FatalErrorIn FatalErrorInFunction
( << "Coupled patches with transformations not supported."
"extendedCellToFaceStencil::extendedCellToFaceStencil"
"(const polyMesh&)"
) << "Coupled patches with transformations not supported."
<< endl << endl
<< "Problematic patch " << cpp.name() << exit(FatalError); << "Problematic patch " << cpp.name() << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -168,10 +168,8 @@ void Foam::extendedUpwindCellToFaceStencil::transportStencil
} }
if (n != transportedStencil.size()) if (n != transportedStencil.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "problem:" << faceStencilSet
"extendedUpwindCellToFaceStencil::transportStencil(..)"
) << "problem:" << faceStencilSet
<< abort(FatalError); << abort(FatalError);
} }
} }
@ -190,10 +188,8 @@ void Foam::extendedUpwindCellToFaceStencil::transportStencil
} }
if (n != transportedStencil.size()) if (n != transportedStencil.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "problem:" << faceStencilSet
"extendedUpwindCellToFaceStencil::transportStencil(..)"
) << "problem:" << faceStencilSet
<< abort(FatalError); << abort(FatalError);
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -211,7 +211,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
{ {
if (iter.key() == globalOwn || iter.key() == globalNei) if (iter.key() == globalOwn || iter.key() == globalNei)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencilSet << "problem:" << faceStencilSet
<< abort(FatalError); << abort(FatalError);
} }
@ -272,10 +272,8 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
{ {
if (iter.key() == globalOwn || iter.key() == globalNei) if (iter.key() == globalOwn || iter.key() == globalNei)
{ {
FatalErrorIn FatalErrorInFunction
( << "problem:" << faceStencilSet
"FECCellToFaceStencil::calcFaceStencil(..)"
) << "problem:" << faceStencilSet
<< abort(FatalError); << abort(FatalError);
} }
faceStencil[faceI][n++] = iter.key(); faceStencil[faceI][n++] = iter.key();
@ -283,7 +281,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
if (n != faceStencil[faceI].size()) if (n != faceStencil[faceI].size())
{ {
FatalErrorIn("problem") << "n:" << n FatalErrorInFunction
<< " size:" << faceStencil[faceI].size() << " size:" << faceStencil[faceI].size()
<< abort(FatalError); << abort(FatalError);
} }
@ -338,10 +336,8 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
{ {
if (iter.key() == globalOwn) if (iter.key() == globalOwn)
{ {
FatalErrorIn FatalErrorInFunction
( << "problem:" << faceStencilSet
"FECCellToFaceStencil::calcFaceStencil(..)"
) << "problem:" << faceStencilSet
<< abort(FatalError); << abort(FatalError);
} }
faceStencil[faceI][n++] = iter.key(); faceStencil[faceI][n++] = iter.key();
@ -358,7 +354,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
label globalOwn = globalNumbering().toGlobal(own[faceI]); label globalOwn = globalNumbering().toGlobal(own[faceI]);
if (faceStencil[faceI][0] != globalOwn) if (faceStencil[faceI][0] != globalOwn)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencil[faceI] << "problem:" << faceStencil[faceI]
<< " globalOwn:" << globalOwn << " globalOwn:" << globalOwn
<< abort(FatalError); << abort(FatalError);
@ -366,7 +362,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
label globalNei = globalNumbering().toGlobal(nei[faceI]); label globalNei = globalNumbering().toGlobal(nei[faceI]);
if (faceStencil[faceI][1] != globalNei) if (faceStencil[faceI][1] != globalNei)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencil[faceI] << "problem:" << faceStencil[faceI]
<< " globalNei:" << globalNei << " globalNei:" << globalNei
<< abort(FatalError); << abort(FatalError);
@ -387,7 +383,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
label globalOwn = globalNumbering().toGlobal(own[faceI]); label globalOwn = globalNumbering().toGlobal(own[faceI]);
if (faceStencil[faceI][0] != globalOwn) if (faceStencil[faceI][0] != globalOwn)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencil[faceI] << "problem:" << faceStencil[faceI]
<< " globalOwn:" << globalOwn << " globalOwn:" << globalOwn
<< abort(FatalError); << abort(FatalError);
@ -395,7 +391,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
label globalNei = neiGlobalCell[faceI-mesh().nInternalFaces()]; label globalNei = neiGlobalCell[faceI-mesh().nInternalFaces()];
if (faceStencil[faceI][1] != globalNei) if (faceStencil[faceI][1] != globalNei)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencil[faceI] << "problem:" << faceStencil[faceI]
<< " globalNei:" << globalNei << " globalNei:" << globalNei
<< abort(FatalError); << abort(FatalError);
@ -411,7 +407,7 @@ void Foam::FECCellToFaceStencil::calcFaceStencil
label globalOwn = globalNumbering().toGlobal(own[faceI]); label globalOwn = globalNumbering().toGlobal(own[faceI]);
if (faceStencil[faceI][0] != globalOwn) if (faceStencil[faceI][0] != globalOwn)
{ {
FatalErrorIn("FECCellToFaceStencil::calcFaceStencil(..)") FatalErrorInFunction
<< "problem:" << faceStencil[faceI] << "problem:" << faceStencil[faceI]
<< " globalOwn:" << globalOwn << " globalOwn:" << globalOwn
<< abort(FatalError); << abort(FatalError);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -124,7 +124,7 @@ void Foam::cellToFaceStencil::merge
if (resultI != result.size()) if (resultI != result.size())
{ {
FatalErrorIn("cellToFaceStencil::merge(..)") FatalErrorInFunction
<< "problem" << abort(FatalError); << "problem" << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,11 +45,8 @@ Foam::extendedFaceToCellStencil::extendedFaceToCellStencil(const polyMesh& mesh)
if (!cpp.parallel() || cpp.separated()) if (!cpp.parallel() || cpp.separated())
{ {
FatalErrorIn FatalErrorInFunction
( << "Coupled patches with transformations not supported."
"extendedFaceToCellStencil::extendedFaceToCellStencil"
"(const polyMesh&)"
) << "Coupled patches with transformations not supported."
<< endl << endl
<< "Problematic patch " << cpp.name() << exit(FatalError); << "Problematic patch " << cpp.name() << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -149,10 +149,8 @@ const Foam::fvPatch& Foam::fvBoundaryMesh::operator[]
if (patchI < 0) if (patchI < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Patch named " << patchName << " not found." << nl
"fvBoundaryMesh::operator[](const word&) const"
) << "Patch named " << patchName << " not found." << nl
<< abort(FatalError); << abort(FatalError);
} }
@ -169,10 +167,8 @@ Foam::fvPatch& Foam::fvBoundaryMesh::operator[]
if (patchI < 0) if (patchI < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Patch named " << patchName << " not found." << nl
"fvBoundaryMesh::operator[](const word&)"
) << "Patch named " << patchName << " not found." << nl
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -466,10 +466,8 @@ void Foam::fvMesh::addFvPatches
{ {
if (boundary().size()) if (boundary().size())
{ {
FatalErrorIn FatalErrorInFunction
( << " boundary already exists"
"fvMesh::addFvPatches(const List<polyPatch*>&, const bool)"
) << " boundary already exists"
<< abort(FatalError); << abort(FatalError);
} }
@ -586,7 +584,7 @@ void Foam::fvMesh::mapFields(const mapPolyMesh& meshMap)
|| meshMap.faceMap().size() != nFaces() || meshMap.faceMap().size() != nFaces()
) )
{ {
FatalErrorIn("fvMesh::mapFields(const mapPolyMesh&)") FatalErrorInFunction
<< "mapPolyMesh does not correspond to the old mesh." << "mapPolyMesh does not correspond to the old mesh."
<< " nCells:" << nCells() << " nCells:" << nCells()
<< " cellMap:" << meshMap.cellMap().size() << " cellMap:" << meshMap.cellMap().size()
@ -815,7 +813,7 @@ void Foam::fvMesh::updateMesh(const mapPolyMesh& mpm)
// Few checks // Few checks
if (VPtr_ && (V().size() != mpm.nOldCells())) if (VPtr_ && (V().size() != mpm.nOldCells()))
{ {
FatalErrorIn("fvMesh::updateMesh(const mapPolyMesh&)") FatalErrorInFunction
<< "V:" << V().size() << "V:" << V().size()
<< " not equal to the number of old cells " << " not equal to the number of old cells "
<< mpm.nOldCells() << mpm.nOldCells()
@ -823,7 +821,7 @@ void Foam::fvMesh::updateMesh(const mapPolyMesh& mpm)
} }
if (V0Ptr_ && (V0Ptr_->size() != mpm.nOldCells())) if (V0Ptr_ && (V0Ptr_->size() != mpm.nOldCells()))
{ {
FatalErrorIn("fvMesh::updateMesh(const mapPolyMesh&)") FatalErrorInFunction
<< "V0:" << V0Ptr_->size() << "V0:" << V0Ptr_->size()
<< " not equal to the number of old cells " << " not equal to the number of old cells "
<< mpm.nOldCells() << mpm.nOldCells()
@ -831,7 +829,7 @@ void Foam::fvMesh::updateMesh(const mapPolyMesh& mpm)
} }
if (V00Ptr_ && (V00Ptr_->size() != mpm.nOldCells())) if (V00Ptr_ && (V00Ptr_->size() != mpm.nOldCells()))
{ {
FatalErrorIn("fvMesh::updateMesh(const mapPolyMesh&)") FatalErrorInFunction
<< "V0:" << V00Ptr_->size() << "V0:" << V00Ptr_->size()
<< " not equal to the number of old cells " << " not equal to the number of old cells "
<< mpm.nOldCells() << mpm.nOldCells()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,7 +53,7 @@ void fvMesh::makeSf() const
// if the pointer is already set // if the pointer is already set
if (SfPtr_) if (SfPtr_)
{ {
FatalErrorIn("fvMesh::makeSf()") FatalErrorInFunction
<< "face areas already exist" << "face areas already exist"
<< abort(FatalError); << abort(FatalError);
} }
@ -90,7 +90,7 @@ void fvMesh::makeMagSf() const
// if the pointer is already set // if the pointer is already set
if (magSfPtr_) if (magSfPtr_)
{ {
FatalErrorIn("void fvMesh::makeMagSf()") FatalErrorInFunction
<< "mag face areas already exist" << "mag face areas already exist"
<< abort(FatalError); << abort(FatalError);
} }
@ -128,7 +128,7 @@ void fvMesh::makeC() const
// if the pointer is already set // if the pointer is already set
if (CPtr_) if (CPtr_)
{ {
FatalErrorIn("fvMesh::makeC()") FatalErrorInFunction
<< "cell centres already exist" << "cell centres already exist"
<< abort(FatalError); << abort(FatalError);
} }
@ -170,7 +170,7 @@ void fvMesh::makeCf() const
// if the pointer is already set // if the pointer is already set
if (CfPtr_) if (CfPtr_)
{ {
FatalErrorIn("fvMesh::makeCf()") FatalErrorInFunction
<< "face centres already exist" << "face centres already exist"
<< abort(FatalError); << abort(FatalError);
} }
@ -232,7 +232,7 @@ const volScalarField::DimensionedInternalField& fvMesh::V0() const
{ {
if (!V0Ptr_) if (!V0Ptr_)
{ {
FatalErrorIn("fvMesh::V0() const") FatalErrorInFunction
<< "V0 is not available" << "V0 is not available"
<< abort(FatalError); << abort(FatalError);
} }
@ -245,7 +245,7 @@ volScalarField::DimensionedInternalField& fvMesh::setV0()
{ {
if (!V0Ptr_) if (!V0Ptr_)
{ {
FatalErrorIn("fvMesh::setV0()") FatalErrorInFunction
<< "V0 is not available" << "V0 is not available"
<< abort(FatalError); << abort(FatalError);
} }
@ -439,7 +439,7 @@ const surfaceScalarField& fvMesh::phi() const
{ {
if (!phiPtr_) if (!phiPtr_)
{ {
FatalErrorIn("fvMesh::phi()") FatalErrorInFunction
<< "mesh flux field does not exist, is the mesh actually moving?" << "mesh flux field does not exist, is the mesh actually moving?"
<< abort(FatalError); << abort(FatalError);
} }
@ -459,7 +459,7 @@ surfaceScalarField& fvMesh::setPhi()
{ {
if (!phiPtr_) if (!phiPtr_)
{ {
FatalErrorIn("fvMesh::setPhi()") FatalErrorInFunction
<< "mesh flux field does not exist, is the mesh actually moving?" << "mesh flux field does not exist, is the mesh actually moving?"
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,10 +41,8 @@ void Foam::fvPatchMapper::calcAddressing() const
|| weightsPtr_ || weightsPtr_
) )
{ {
FatalErrorIn FatalErrorInFunction
( << "Addressing already calculated"
"void fvPatchMapper::calcAddressing() const)"
) << "Addressing already calculated"
<< abort(FatalError); << abort(FatalError);
} }
@ -95,10 +93,8 @@ void Foam::fvPatchMapper::calcAddressing() const
if (min(addr) < 0) if (min(addr) < 0)
{ {
//FatalErrorIn //FatalErrorIn
WarningIn WarningInFunction
( << "Unmapped entry in patch mapping for patch "
"void fvPatchMapper::calcAddressing() const"
) << "Unmapped entry in patch mapping for patch "
<< patch_.index() << " named " << patch_.name() << patch_.index() << " named " << patch_.name()
//<< abort(FatalError); //<< abort(FatalError);
<< endl; << endl;
@ -195,10 +191,8 @@ void Foam::fvPatchMapper::calcAddressing() const
{ {
if (min(addr[i]) < 0) if (min(addr[i]) < 0)
{ {
FatalErrorIn FatalErrorInFunction
( << "Error in patch mapping for patch "
"void fvPatchMapper::calcAddressing() const"
) << "Error in patch mapping for patch "
<< patch_.index() << " named " << patch_.name() << patch_.index() << " named " << patch_.name()
<< abort(FatalError); << abort(FatalError);
} }
@ -250,10 +244,8 @@ const Foam::labelUList& Foam::fvPatchMapper::directAddressing() const
{ {
if (!direct()) if (!direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested direct addressing for an interpolative mapper."
"const labelUList& fvPatchMapper::directAddressing() const"
) << "Requested direct addressing for an interpolative mapper."
<< abort(FatalError); << abort(FatalError);
} }
@ -270,10 +262,8 @@ const Foam::labelListList& Foam::fvPatchMapper::addressing() const
{ {
if (direct()) if (direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested interpolative addressing for a direct mapper."
"const labelListList& fvPatchMapper::addressing() const"
) << "Requested interpolative addressing for a direct mapper."
<< abort(FatalError); << abort(FatalError);
} }
@ -290,10 +280,8 @@ const Foam::scalarListList& Foam::fvPatchMapper::weights() const
{ {
if (direct()) if (direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested interpolative weights for a direct mapper."
"const scalarListList& fvPatchMapper::weights() const"
) << "Requested interpolative weights for a direct mapper."
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ void Foam::fvSurfaceMapper::calcAddressing() const
|| insertedObjectLabelsPtr_ || insertedObjectLabelsPtr_
) )
{ {
FatalErrorIn("void fvSurfaceMapper::calcAddressing() const)") FatalErrorInFunction
<< "Addressing already calculated" << "Addressing already calculated"
<< abort(FatalError); << abort(FatalError);
} }
@ -174,11 +174,8 @@ const Foam::labelUList& Foam::fvSurfaceMapper::directAddressing() const
{ {
if (!direct()) if (!direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested direct addressing for an interpolative mapper."
"const labelUList& fvSurfaceMapper::"
"directAddressing() const"
) << "Requested direct addressing for an interpolative mapper."
<< abort(FatalError); << abort(FatalError);
} }
@ -195,10 +192,8 @@ const Foam::labelListList& Foam::fvSurfaceMapper::addressing() const
{ {
if (direct()) if (direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested interpolative addressing for a direct mapper."
"const labelListList& fvSurfaceMapper::addressing() const"
) << "Requested interpolative addressing for a direct mapper."
<< abort(FatalError); << abort(FatalError);
} }
@ -215,10 +210,8 @@ const Foam::scalarListList& Foam::fvSurfaceMapper::weights() const
{ {
if (direct()) if (direct())
{ {
FatalErrorIn FatalErrorInFunction
( << "Requested interpolative weights for a direct mapper."
"const scalarListList& fvSurfaceMapper::weights() const"
) << "Requested interpolative weights for a direct mapper."
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -46,8 +46,7 @@ bool Foam::fvMeshSubset::checkCellSubset() const
{ {
if (fvMeshSubsetPtr_.empty()) if (fvMeshSubsetPtr_.empty())
{ {
FatalErrorIn("bool fvMeshSubset::checkCellSubset() const") FatalErrorInFunction
<< "Mesh subset not set. Please set the cell map using "
<< "void setCellSubset(const labelHashSet& cellsToSubset)" << endl << "void setCellSubset(const labelHashSet& cellsToSubset)" << endl
<< "before attempting to access subset data" << "before attempting to access subset data"
<< abort(FatalError); << abort(FatalError);
@ -394,11 +393,8 @@ void Foam::fvMeshSubset::setCellSubset
} }
else if (wantedPatchID < 0 || wantedPatchID >= oldPatches.size()) else if (wantedPatchID < 0 || wantedPatchID >= oldPatches.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "Non-existing patch index " << wantedPatchID << endl
"fvMeshSubset::setCellSubset(const labelHashSet&"
", const label patchID)"
) << "Non-existing patch index " << wantedPatchID << endl
<< "Should be between 0 and " << oldPatches.size()-1 << "Should be between 0 and " << oldPatches.size()-1
<< abort(FatalError); << abort(FatalError);
} }
@ -774,11 +770,8 @@ void Foam::fvMeshSubset::setLargeCellSubset
if (region.size() != oldCells.size()) if (region.size() != oldCells.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "Size of region " << region.size()
"fvMeshSubset::setCellSubset(const labelList&"
", const label, const label, const bool)"
) << "Size of region " << region.size()
<< " is not equal to number of cells in mesh " << oldCells.size() << " is not equal to number of cells in mesh " << oldCells.size()
<< abort(FatalError); << abort(FatalError);
} }
@ -794,11 +787,8 @@ void Foam::fvMeshSubset::setLargeCellSubset
} }
else if (wantedPatchID < 0 || wantedPatchID >= oldPatches.size()) else if (wantedPatchID < 0 || wantedPatchID >= oldPatches.size())
{ {
FatalErrorIn FatalErrorInFunction
( << "Non-existing patch index " << wantedPatchID << endl
"fvMeshSubset::setCellSubset(const labelList&"
", const label, const label, const bool)"
) << "Non-existing patch index " << wantedPatchID << endl
<< "Should be between 0 and " << oldPatches.size()-1 << "Should be between 0 and " << oldPatches.size()-1
<< abort(FatalError); << abort(FatalError);
} }
@ -1045,11 +1035,8 @@ void Foam::fvMeshSubset::setLargeCellSubset
if (faceI != nFacesInSet) if (faceI != nFacesInSet)
{ {
FatalErrorIn FatalErrorInFunction
( << "Problem" << abort(FatalError);
"fvMeshSubset::setCellSubset(const labelList&"
", const label, const label, const bool)"
) << "Problem" << abort(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -21,10 +21,6 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
coupledFvPatch is an abstract base class for patches that couple regions
of the computational domain e.g. cyclic and processor-processor links.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "regionCoupledFvPatch.H" #include "regionCoupledFvPatch.H"
@ -62,18 +58,10 @@ Foam::tmp<Foam::labelField> Foam::regionCoupledFvPatch::internalFieldTransfer
} }
else else
{ {
/*
WarningIn
(
"regionCoupledFvPatch::internalFieldTransfer"
"( const Pstream::commsTypes, const labelUList&)"
" the internal field can not be transfered "
" as the neighbFvPatch are in different meshes "
);
*/
return tmp<labelField>(new labelField(iF.size(), 0)); return tmp<labelField>(new labelField(iF.size(), 0));
} }
return tmp<labelField>(NULL); return tmp<labelField>(NULL);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -47,7 +47,7 @@ Foam::autoPtr<Foam::fvPatch> Foam::fvPatch::New
if (cstrIter == polyPatchConstructorTablePtr_->end()) if (cstrIter == polyPatchConstructorTablePtr_->end())
{ {
FatalErrorIn("fvPatch::New(const polyPatch&, const fvBoundaryMesh&)") FatalErrorInFunction
<< "Unknown fvPatch type " << patch.type() << nl << "Unknown fvPatch type " << patch.type() << nl
<< "Valid fvPatch types are :" << "Valid fvPatch types are :"
<< polyPatchConstructorTablePtr_->sortedToc() << polyPatchConstructorTablePtr_->sortedToc()

Some files were not shown because too many files have changed in this diff Show More