]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace two naked 'throw ExcInternalError()' by the corresponding AssertThrow so...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 00:01:47 +0000 (00:01 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 00:01:47 +0000 (00:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@23886 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/distributed/tria.cc
deal.II/source/lac/petsc_vector_base.cc

index 109526a01cbabfc4a01f7f3583eae0576cd1584c..47191ee62563266c89d73bf0ce236a3b674adfc7 100644 (file)
@@ -1374,7 +1374,7 @@ namespace
              break;
            }
            default:
-                 throw ExcInternalError();
+                 AssertThrow (false, ExcInternalError());
          }
       }
   }
index 902c1906fed3b6a5f91de4efc50268849554a6e6..30b6a33ed97d9272112437ce912a17990af84595 100644 (file)
@@ -1156,7 +1156,7 @@ namespace PETScWrappers
                                     // generate an error for not ghosted
                                     // vectors
     if (!ghosted)
-       throw ExcInternalError();
+      AssertThrow (false, ExcInternalError());
 
     int ierr;
 

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.