Skip to content
Snippets Groups Projects
Commit 70c11770 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 3e5a47db
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment