]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Ensure that the state is set correctly when applying LU factorization to LAPACKFullMa...
authorNiklas Fehn <fehn@lnm.mw.tum.de>
Thu, 9 Mar 2017 08:20:23 +0000 (09:20 +0100)
committerNiklas Fehn <fehn@lnm.mw.tum.de>
Thu, 9 Mar 2017 08:20:23 +0000 (09:20 +0100)
source/lac/lapack_full_matrix.cc

index 7b46ef45a8273fdcb1185c7a7233bdb7c97d6ed2..d1e8fc612e08f8c888a273b860ca1bc1b2a46007 100644 (file)
@@ -504,9 +504,11 @@ LAPACKFullMatrix<number>::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());
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.