]> https://gitweb.dealii.org/ - dealii.git/commitdiff
PETScWrappers::MPI::Vector::mean_value() is not implemented yet, warn about that...
authorTimo Heister <timo.heister@gmail.com>
Mon, 27 Dec 2010 19:26:56 +0000 (19:26 +0000)
committerTimo Heister <timo.heister@gmail.com>
Mon, 27 Dec 2010 19:26:56 +0000 (19:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@23072 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_vector_base.cc

index 3ada9aee1d05b06980b7aff687c42a4eeb35f694..36049663f9915f5f488734a3c16bc49136460570 100644 (file)
@@ -414,6 +414,11 @@ 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
+    
                                      // get a representation of the vector and
                                      // loop over all the elements
     PetscScalar *start_ptr;

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.