Style changes: FatalError
This commit is contained in:
parent
070957cff2
commit
7334b895fe
3 changed files with 16 additions and 72 deletions
|
@ -81,17 +81,8 @@ fixedValueIbFvPatchField<Type>::fixedValueIbFvPatchField
|
||||||
|
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalIOErrorIn
|
FatalIOErrorInFunction(dict)
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"fixedValueIbFvPatchField<Type>::"
|
|
||||||
"fixedValueIbFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const fvPatch& p,\n"
|
|
||||||
" const Field<Type>& field,\n"
|
|
||||||
" const dictionary& dict\n"
|
|
||||||
")\n",
|
|
||||||
dict
|
|
||||||
) << "\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()
|
||||||
|
@ -128,17 +119,8 @@ fixedValueIbFvPatchField<Type>::fixedValueIbFvPatchField
|
||||||
// HJ, 12/Apr/2012
|
// HJ, 12/Apr/2012
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorInFunction
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"fixedValueIbFvPatchField<Type>::"
|
|
||||||
"fixedValueIbFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const fixedValueIbFvPatchField<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()
|
||||||
|
|
|
@ -87,17 +87,8 @@ mixedIbFvPatchField<Type>::mixedIbFvPatchField
|
||||||
|
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalIOErrorIn
|
FatalIOErrorInFunction(dict)
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"mixedIbFvPatchField<Type>::"
|
|
||||||
"mixedIbFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const fvPatch& p,\n"
|
|
||||||
" const Field<Type>& field,\n"
|
|
||||||
" const dictionary& dict\n"
|
|
||||||
")\n",
|
|
||||||
dict
|
|
||||||
) << "\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()
|
||||||
|
@ -109,13 +100,11 @@ mixedIbFvPatchField<Type>::mixedIbFvPatchField
|
||||||
// the patch is active
|
// the patch is active
|
||||||
// Initialise the value to avoid errors
|
// Initialise the value to avoid errors
|
||||||
// HJ, 1/Dec/2017
|
// HJ, 1/Dec/2017
|
||||||
// if (this->ibPatch().ibPolyPatch().active())
|
|
||||||
{
|
|
||||||
// Re-interpolate the data related to immersed boundary
|
|
||||||
this->updateIbValues();
|
|
||||||
|
|
||||||
mixedFvPatchField<Type>::evaluate();
|
// Re-interpolate the data related to immersed boundary
|
||||||
}
|
this->updateIbValues();
|
||||||
|
|
||||||
|
mixedFvPatchField<Type>::evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,17 +132,8 @@ mixedIbFvPatchField<Type>::mixedIbFvPatchField
|
||||||
// HJ, 12/Apr/2012
|
// HJ, 12/Apr/2012
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorInFunction
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"mixedIbFvPatchField<Type>::"
|
|
||||||
"mixedIbFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const mixedIbFvPatchField<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()
|
||||||
|
|
|
@ -64,17 +64,8 @@ immersedBoundaryFvPatchField<Type>::immersedBoundaryFvPatchField
|
||||||
{
|
{
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalIOErrorIn
|
FatalIOErrorInFunction(dict)
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"immersedBoundaryFvPatchField<Type>::"
|
|
||||||
"immersedBoundaryFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const fvPatch& p,\n"
|
|
||||||
" const Field<Type>& field,\n"
|
|
||||||
" const dictionary& dict\n"
|
|
||||||
")\n",
|
|
||||||
dict
|
|
||||||
) << "\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()
|
||||||
|
@ -107,17 +98,8 @@ immersedBoundaryFvPatchField<Type>::immersedBoundaryFvPatchField
|
||||||
// HJ, 12/Apr/2012
|
// HJ, 12/Apr/2012
|
||||||
if (!isType<immersedBoundaryFvPatch>(p))
|
if (!isType<immersedBoundaryFvPatch>(p))
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorInFunction
|
||||||
(
|
<< "\n patch type '" << p.type()
|
||||||
"immersedBoundaryFvPatchField<Type>::"
|
|
||||||
"immersedBoundaryFvPatchField\n"
|
|
||||||
"(\n"
|
|
||||||
" const immersedBoundaryFvPatchField<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()
|
||||||
|
|
Reference in a new issue