Commit 70c11770 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 3e5a47db
......@@ -202,9 +202,12 @@ void Foam::lduMatrix::operator+=(const lduMatrix& A)
}
else
{
FatalErrorIn("lduMatrix::operator+=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< abort(FatalError);
if (debug > 1)
{
WarningIn("lduMatrix::operator+=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< endl;
}
}
}
......@@ -270,9 +273,12 @@ void Foam::lduMatrix::operator-=(const lduMatrix& A)
}
else
{
FatalErrorIn("lduMatrix::operator-=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< abort(FatalError);
if (debug > 1)
{
WarningIn("lduMatrix::operator-=(const lduMatrix& A)")
<< "Unknown matrix type combination"
<< endl;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment