From 7334b895fee74ebb7e3745a4332b5569f76ea50b Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 17 Jun 2019 11:10:35 +0100 Subject: [PATCH] Style changes: FatalError --- .../fixedValueIbFvPatchField.C | 26 +++----------- .../mixedIbFvPatchField/mixedIbFvPatchField.C | 36 +++++-------------- .../immersedBoundaryFvPatchField.C | 26 +++----------- 3 files changed, 16 insertions(+), 72 deletions(-) diff --git a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/fixedValueIbFvPatchField/fixedValueIbFvPatchField.C b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/fixedValueIbFvPatchField/fixedValueIbFvPatchField.C index ba21b5e4c..e396d37d9 100644 --- a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/fixedValueIbFvPatchField/fixedValueIbFvPatchField.C +++ b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/fixedValueIbFvPatchField/fixedValueIbFvPatchField.C @@ -81,17 +81,8 @@ fixedValueIbFvPatchField::fixedValueIbFvPatchField if (!isType(p)) { - FatalIOErrorIn - ( - "fixedValueIbFvPatchField::" - "fixedValueIbFvPatchField\n" - "(\n" - " const fvPatch& p,\n" - " const Field& field,\n" - " const dictionary& dict\n" - ")\n", - dict - ) << "\n patch type '" << p.type() + FatalIOErrorInFunction(dict) + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name() @@ -128,17 +119,8 @@ fixedValueIbFvPatchField::fixedValueIbFvPatchField // HJ, 12/Apr/2012 if (!isType(p)) { - FatalErrorIn - ( - "fixedValueIbFvPatchField::" - "fixedValueIbFvPatchField\n" - "(\n" - " const fixedValueIbFvPatchField&,\n" - " const fvPatch& p,\n" - " const DimensionedField& iF,\n" - " const fvPatchFieldMapper& mapper\n" - ")\n" - ) << "\n patch type '" << p.type() + FatalErrorInFunction + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name() diff --git a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/mixedIbFvPatchField/mixedIbFvPatchField.C b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/mixedIbFvPatchField/mixedIbFvPatchField.C index 5f688461e..952e1392a 100644 --- a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/mixedIbFvPatchField/mixedIbFvPatchField.C +++ b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/basic/mixedIbFvPatchField/mixedIbFvPatchField.C @@ -87,17 +87,8 @@ mixedIbFvPatchField::mixedIbFvPatchField if (!isType(p)) { - FatalIOErrorIn - ( - "mixedIbFvPatchField::" - "mixedIbFvPatchField\n" - "(\n" - " const fvPatch& p,\n" - " const Field& field,\n" - " const dictionary& dict\n" - ")\n", - dict - ) << "\n patch type '" << p.type() + FatalIOErrorInFunction(dict) + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name() @@ -109,13 +100,11 @@ mixedIbFvPatchField::mixedIbFvPatchField // the patch is active // Initialise the value to avoid errors // HJ, 1/Dec/2017 -// if (this->ibPatch().ibPolyPatch().active()) - { - // Re-interpolate the data related to immersed boundary - this->updateIbValues(); - mixedFvPatchField::evaluate(); - } + // Re-interpolate the data related to immersed boundary + this->updateIbValues(); + + mixedFvPatchField::evaluate(); } @@ -143,17 +132,8 @@ mixedIbFvPatchField::mixedIbFvPatchField // HJ, 12/Apr/2012 if (!isType(p)) { - FatalErrorIn - ( - "mixedIbFvPatchField::" - "mixedIbFvPatchField\n" - "(\n" - " const mixedIbFvPatchField&,\n" - " const fvPatch& p,\n" - " const DimensionedField& iF,\n" - " const fvPatchFieldMapper& mapper\n" - ")\n" - ) << "\n patch type '" << p.type() + FatalErrorInFunction + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name() diff --git a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/immersedBoundaryFvPatchField/immersedBoundaryFvPatchField.C b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/immersedBoundaryFvPatchField/immersedBoundaryFvPatchField.C index 27d83e08c..2e2157011 100644 --- a/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/immersedBoundaryFvPatchField/immersedBoundaryFvPatchField.C +++ b/src/immersedBoundary/immersedBoundary/immersedBoundaryFvPatchFields/immersedBoundaryFvPatchField/immersedBoundaryFvPatchField.C @@ -64,17 +64,8 @@ immersedBoundaryFvPatchField::immersedBoundaryFvPatchField { if (!isType(p)) { - FatalIOErrorIn - ( - "immersedBoundaryFvPatchField::" - "immersedBoundaryFvPatchField\n" - "(\n" - " const fvPatch& p,\n" - " const Field& field,\n" - " const dictionary& dict\n" - ")\n", - dict - ) << "\n patch type '" << p.type() + FatalIOErrorInFunction(dict) + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name() @@ -107,17 +98,8 @@ immersedBoundaryFvPatchField::immersedBoundaryFvPatchField // HJ, 12/Apr/2012 if (!isType(p)) { - FatalErrorIn - ( - "immersedBoundaryFvPatchField::" - "immersedBoundaryFvPatchField\n" - "(\n" - " const immersedBoundaryFvPatchField&,\n" - " const fvPatch& p,\n" - " const DimensionedField& iF,\n" - " const fvPatchFieldMapper& mapper\n" - ")\n" - ) << "\n patch type '" << p.type() + FatalErrorInFunction + << "\n patch type '" << p.type() << "' not constraint type '" << typeName << "'" << "\n for patch " << p.name() << " of field " << this->dimensionedInternalField().name()