STYLE: report address/field size mismatch

This commit is contained in:
Mark Olesen
2020-12-14 17:30:01 +01:00
parent a629fb7db2
commit 27ec25dfef
2 changed files with 8 additions and 4 deletions

View File

@ -48,7 +48,8 @@ void Foam::faMatrix<Type>::addToInternalField
if (addr.size() != pf.size())
{
FatalErrorInFunction
<< "sizes of addressing and field are different"
<< "addressing (" << addr.size()
<< ") and field (" << pf.size() << ") are different sizes" << endl
<< abort(FatalError);
}
@ -85,7 +86,8 @@ void Foam::faMatrix<Type>::subtractFromInternalField
if (addr.size() != pf.size())
{
FatalErrorInFunction
<< "sizes of addressing and field are different"
<< "addressing (" << addr.size()
<< ") and field (" << pf.size() << ") are different sizes" << endl
<< abort(FatalError);
}

View File

@ -49,7 +49,8 @@ void Foam::fvMatrix<Type>::addToInternalField
if (addr.size() != pf.size())
{
FatalErrorInFunction
<< "sizes of addressing and field are different"
<< "addressing (" << addr.size()
<< ") and field (" << pf.size() << ") are different sizes" << endl
<< abort(FatalError);
}
@ -86,7 +87,8 @@ void Foam::fvMatrix<Type>::subtractFromInternalField
if (addr.size() != pf.size())
{
FatalErrorInFunction
<< "sizes of addressing and field are different"
<< "addressing (" << addr.size()
<< ") and field (" << pf.size() << ") are different sizes" << endl
<< abort(FatalError);
}