mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: report address/field size mismatch
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user