]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
exceptions updated
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 11:23:01 +0000 (11:23 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 11:23:01 +0000 (11:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@6908 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_coarse.h

index 052bfc24c07228e3c54dc698134c73827f7d26ed..6110238a7d083722a108870ff9e5fa1334d67892 100644 (file)
@@ -77,12 +77,6 @@ class MGCoarseGridLACIteration :  public MGCoarseGrid<VECTOR>
                                      * constructor by a new matrix.
                                      */
     void set_matrix (const MATRIX &);
-
-                                    /**
-                                     * Exception.
-                                     */
-    DeclException0 (ExcNoMatrixGiven);
-
     
   private:
                                     /**
@@ -158,7 +152,9 @@ MGCoarseGridLACIteration<SOLVER, MATRIX, PRECOND, VECTOR>
              VECTOR       &dst,
              const VECTOR &src) const
 {
-  Assert(matrix!=0, ExcNoMatrixGiven());
+  Assert(solver!=0, ExcNotInitialized());
+  Assert(matrix!=0, ExcNotInitialized());
+  Assert(precondition!=0, ExcNotInitialized());
   solver->solve(*matrix, dst, src, *precondition);
 }
 

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.