mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
src/OpenFOAM: Update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the function signature string.
This commit is contained in:
@ -34,7 +34,7 @@ License
|
||||
#define checkField(gf1, gf2, op) \
|
||||
if ((gf1).mesh() != (gf2).mesh()) \
|
||||
{ \
|
||||
FatalErrorIn("checkField(gf1, gf2, op)") \
|
||||
FatalErrorInFunction \
|
||||
<< "different mesh for fields " \
|
||||
<< (gf1).name() << " and " << (gf2).name() \
|
||||
<< " during operatrion " << op \
|
||||
@ -114,12 +114,8 @@ bool Foam::GeometricField<Type, PatchField, GeoMesh>::readIfPresent()
|
||||
// Check compatibility between field and mesh
|
||||
if (this->size() != GeoMesh::size(this->mesh()))
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::"
|
||||
"readIfPresent()",
|
||||
this->readStream(typeName)
|
||||
) << " number of field elements = " << this->size()
|
||||
FatalIOErrorInFunction(this->readStream(typeName))
|
||||
<< " number of field elements = " << this->size()
|
||||
<< " number of mesh elements = "
|
||||
<< GeoMesh::size(this->mesh())
|
||||
<< exit(FatalIOError);
|
||||
@ -334,12 +330,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
|
||||
|
||||
if (this->size() != GeoMesh::size(this->mesh()))
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::GeometricField"
|
||||
"(const IOobject&, const Mesh&)",
|
||||
this->readStream(typeName)
|
||||
) << " number of field elements = " << this->size()
|
||||
FatalIOErrorInFunction(this->readStream(typeName))
|
||||
<< " number of field elements = " << this->size()
|
||||
<< " number of mesh elements = " << GeoMesh::size(this->mesh())
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
@ -375,11 +367,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
|
||||
|
||||
if (this->size() != GeoMesh::size(this->mesh()))
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::GeometricField"
|
||||
"(const IOobject&, const Mesh&, const dictionary&)"
|
||||
) << " number of field elements = " << this->size()
|
||||
FatalErrorInFunction
|
||||
<< " number of field elements = " << this->size()
|
||||
<< " number of mesh elements = " << GeoMesh::size(this->mesh())
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
@ -833,10 +822,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::prevIter() const
|
||||
{
|
||||
if (!fieldPrevIterPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::prevIter() const"
|
||||
) << "previous iteration field" << endl << this->info() << endl
|
||||
FatalErrorInFunction
|
||||
<< "previous iteration field" << endl << this->info() << endl
|
||||
<< " not stored."
|
||||
<< " Use field.storePrevIter() at start of iteration."
|
||||
<< abort(FatalError);
|
||||
@ -1092,11 +1079,8 @@ void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=
|
||||
{
|
||||
if (this == &gf)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::operator="
|
||||
"(const GeometricField<Type, PatchField, GeoMesh>&)"
|
||||
) << "attempted assignment to self"
|
||||
FatalErrorInFunction
|
||||
<< "attempted assignment to self"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -1117,11 +1101,8 @@ void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=
|
||||
{
|
||||
if (this == &(tgf()))
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"GeometricField<Type, PatchField, GeoMesh>::operator="
|
||||
"(const tmp<GeometricField<Type, PatchField, GeoMesh> >&)"
|
||||
) << "attempted assignment to self"
|
||||
FatalErrorInFunction
|
||||
<< "attempted assignment to self"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user