]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Correct condition in an Assert.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Dec 2010 13:25:01 +0000 (13:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Dec 2010 13:25:01 +0000 (13:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@23092 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_vector_base.cc

index 36049663f9915f5f488734a3c16bc49136460570..68cc7b28ee9e51aca9de7b17c4ec69cebeb2dce4 100644 (file)
@@ -414,10 +414,8 @@ namespace PETScWrappers
   PetscScalar
   VectorBase::mean_value () const
   {
-#ifdef DEBUG
-    Assert(dynamic_cast<const PETScWrappers::MPI::Vector *>(this) != 0,
-    ExcMessage ("::mean_value() not implemented for MPI::Vector."));    
-#endif
+    Assert(dynamic_cast<const PETScWrappers::MPI::Vector *>(this) == 0,
+          ExcMessage   ("::mean_value() not implemented for MPI::Vector."));
     
                                      // get a representation of the vector and
                                      // loop over all the elements

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.