ENH: changed fatal error to warn message on debug > 1

This commit is contained in:
andy
2010-10-27 18:22:11 +01:00
parent 3e5a47dbb5
commit 70c11770d5

View File

@ -202,9 +202,12 @@ void Foam::lduMatrix::operator+=(const lduMatrix& A)
}
else
{
FatalErrorIn("lduMatrix::operator+=(const lduMatrix& A)")
if (debug > 1)
{
WarningIn("lduMatrix::operator+=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< abort(FatalError);
<< endl;
}
}
}
@ -270,9 +273,12 @@ void Foam::lduMatrix::operator-=(const lduMatrix& A)
}
else
{
FatalErrorIn("lduMatrix::operator-=(const lduMatrix& A)")
if (debug > 1)
{
WarningIn("lduMatrix::operator-=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< abort(FatalError);
<< endl;
}
}
}