From 70c11770d5403d0e26d3d209781b52a596ea6289 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 27 Oct 2010 18:22:11 +0100 Subject: [PATCH] ENH: changed fatal error to warn message on debug > 1 --- .../lduMatrix/lduMatrix/lduMatrixOperations.C | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixOperations.C b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixOperations.C index b13ffeb5f8..e5c9fd8abe 100644 --- a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixOperations.C +++ b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixOperations.C @@ -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; + } } }