From: Niklas Fehn Date: Thu, 9 Mar 2017 08:20:23 +0000 (+0100) Subject: Ensure that the state is set correctly when applying LU factorization to LAPACKFullMa... X-Git-Tag: v8.5.0-rc1~45^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9929730ae456bf45dd6a06d565124f0a70a763;p=dealii.git Ensure that the state is set correctly when applying LU factorization to LAPACKFullMatrix. --- diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index 7b46ef45a8..d1e8fc612e 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -504,9 +504,11 @@ LAPACKFullMatrix::compute_lu_factorization() getrf(&mm, &nn, values, &mm, &ipiv[0], &info); Assert(info >= 0, ExcInternalError()); - AssertThrow(info == 0, LACExceptions::ExcSingular()); - + + // if info >= 0, the factorization has been completed state = lu; + + AssertThrow(info == 0, LACExceptions::ExcSingular()); }