diff --git a/src/overset/oversetPolyPatch/oversetFvPatchField.C b/src/overset/oversetPolyPatch/oversetFvPatchField.C index 0d38b83514..de61b8c118 100644 --- a/src/overset/oversetPolyPatch/oversetFvPatchField.C +++ b/src/overset/oversetPolyPatch/oversetFvPatchField.C @@ -80,16 +80,8 @@ Foam::oversetFvPatchField::oversetFvPatchField { if (!isA(p)) { - FatalIOErrorIn - ( - "oversetFvPatchField::oversetFvPatchField" - "(" - "const fvPatch&, " - "const DimensionedField&, " - "const dictionary&" - ")", - dict - ) << " patch type '" << p.type() + FatalIOErrorInFunction(dict) + << " patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->internalField().name() diff --git a/src/overset/regionsToCell/findRefCells.C b/src/overset/regionsToCell/findRefCells.C index 289bb1959b..67ac1ba0f8 100644 --- a/src/overset/regionsToCell/findRefCells.C +++ b/src/overset/regionsToCell/findRefCells.C @@ -108,19 +108,8 @@ void Foam::setRefCells if (refCells.size() != regionNeedReference.size()) { - FatalIOErrorIn - ( - "setRefCell\n" - "(\n" - " const volScalarField&,\n" - " const volScalarField&,\n" - " const dictionary&,\n" - " labelList&,\n" - " scalarField&,\n" - " const bool\n" - ")\n", - dict - ) << "Number of refCells " << refCells.size() + FatalIOErrorInFunction(dict) + << "Number of refCells " << refCells.size() << " does not correspond to number of regions " << regionNeedReference.size() << exit(FatalIOError); @@ -146,19 +135,8 @@ void Foam::setRefCells && regionRefCells[regionI] == -1 ) { - FatalIOErrorIn - ( - "setRefCell\n" - "(\n" - " const volScalarField&,\n" - " const volScalarField&,\n" - " const dictionary&,\n" - " labelList&,\n" - " scalarField&,\n" - " const bool\n" - ")\n", - dict - ) << "Have no reference cell for region " << regionI + FatalIOErrorInFunction(dict) + << "Have no reference cell for region " << regionI << nl << "Overall per-region reference cells " << regionRefCells @@ -173,19 +151,8 @@ void Foam::setRefCells if (refPoints.size() != regionNeedReference.size()) { - FatalIOErrorIn - ( - "setRefCell\n" - "(\n" - " const volScalarField&,\n" - " const volScalarField&,\n" - " const dictionary&,\n" - " labelList&,\n" - " scalarField&,\n" - " const bool\n" - ")\n", - dict - ) << "Number of refPoints " << refPoints.size() + FatalIOErrorInFunction(dict) + << "Number of refPoints " << refPoints.size() << " does not correspond to number of regions " << regionNeedReference.size() << exit(FatalIOError); @@ -226,19 +193,8 @@ void Foam::setRefCells { if (hasRef[regionI] != 1) { - FatalIOErrorIn - ( - "setRefCell\n" - "(\n" - " const volScalarField&,\n" - " const volScalarField&,\n" - " const dictionary&,\n" - " labelList&,\n" - " scalarField&,\n" - " const bool\n" - ")\n", - dict - ) << "Unable to set reference cell for field " << field.name() + FatalIOErrorInFunction(dict) + << "Unable to set reference cell for field " << field.name() << nl << " Reference points " << refPointName << " " << refPoints @@ -251,19 +207,8 @@ void Foam::setRefCells } else { - FatalIOErrorIn - ( - "setRefCell\n" - "(\n" - " const volScalarField&,\n" - " const volScalarField&,\n" - " const dictionary&,\n" - " labelList&,\n" - " scalarField&,\n" - " const bool\n" - ")\n", - dict - ) << "Unable to set reference cell for field " << field.name() + FatalIOErrorInFunction(dict) + << "Unable to set reference cell for field " << field.name() << nl << " Please supply either " << refCellName << " or " << refPointName << nl << exit(FatalIOError); diff --git a/src/randomProcesses/windowModels/windowModel/windowModelNew.C b/src/randomProcesses/windowModels/windowModel/windowModelNew.C index d4dd15b07e..7b1c8a7e72 100644 --- a/src/randomProcesses/windowModels/windowModel/windowModelNew.C +++ b/src/randomProcesses/windowModels/windowModel/windowModelNew.C @@ -42,10 +42,8 @@ Foam::autoPtr Foam::windowModel::New if (!cstrIter.found()) { - FatalErrorIn - ( - "windowModel::New(const dictionary&, const label)" - ) << "Unknown windowModel type " + FatalErrorInFunction + << "Unknown windowModel type " << modelType << nl << nl << "Valid windowModel types are:" << nl << dictionaryConstructorTablePtr_->sortedToc() diff --git a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C index de258c1010..43eecf8ae5 100644 --- a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C +++ b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C @@ -159,11 +159,7 @@ void Foam::fileFormats::FLMAsurfaceFormat::write { if (!os.good()) { - FatalErrorIn - ( - "fileFormats::FLMAsurfaceFormat::write" - "(OSstream&, const MeshedSurfaceProxy&)" - ) + FatalErrorInFunction << "bad output state " << exit(FatalError); } @@ -352,11 +348,7 @@ void Foam::fileFormats::FLMAsurfaceFormat::write } else { - FatalErrorIn - ( - "fileFormats::FLMAsurfaceFormat::write" - "(const fileName&, const MeshedSurfaceProxy&)" - ) + FatalErrorInFunction << "Cannot open file for writing " << filename << exit(FatalError); }