From 5e9929730ae456bf45dd6a06d565124f0a70a763 Mon Sep 17 00:00:00 2001 From: Niklas Fehn Date: Thu, 9 Mar 2017 09:20:23 +0100 Subject: [PATCH] Ensure that the state is set correctly when applying LU factorization to LAPACKFullMatrix. --- source/lac/lapack_full_matrix.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); } -- 2.39.5