]> https://gitweb.dealii.org/ - dealii.git/commitdiff
output the error coe of UMFPack
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 21 Oct 2005 13:44:55 +0000 (13:44 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 21 Oct 2005 13:44:55 +0000 (13:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@11643 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_direct.h
deal.II/lac/source/sparse_direct.cc

index ee5ce3056549924c6262f4d87e31a156cd779f7b..1ae3a8ecf661b5606cec92d421d5a501c14f2d5f 100644 (file)
@@ -1170,7 +1170,8 @@ class SparseDirectUMFPACK : public Subscriptor
                                      /**
                                       * Exception
                                       */
-    DeclException0 (ExcUMFPACKError);
+    DeclException1 (ExcUMFPACKError, int,
+                   << "UMFPACK returned error status " << arg1);
     
   private:
                                      /**
index fa1960aebc8659f647bf0b641e0a3460edcbddcc..c1dcd5684e9a9ad4ff5d5099c7fd4edbeb13167c 100644 (file)
@@ -1793,13 +1793,13 @@ factorize (const SparseMatrix<double> &matrix)
                                 &Ap[0], &Ai[0], &Ax[0],
                                 &symbolic_decomposition,
                                 &control[0], 0);
-  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError());
+  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError(status));
   
   status = umfpack_di_numeric (&Ap[0], &Ai[0], &Ax[0],
                                symbolic_decomposition,
                                &numeric_decomposition,
                                &control[0], 0);
-  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError());
+  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError(status));
 
   umfpack_di_free_symbolic (&symbolic_decomposition) ;
 }
@@ -1830,7 +1830,7 @@ SparseDirectUMFPACK::solve (Vector<double> &rhs_and_solution) const
                         rhs_and_solution.begin(), rhs.begin(),
                         numeric_decomposition,
                         &control[0], 0);
-  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError());
+  AssertThrow (status == UMFPACK_OK, ExcUMFPACKError(status));
 }
 
 

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.