From: Timo Heister Date: Mon, 27 Dec 2010 19:26:56 +0000 (+0000) Subject: PETScWrappers::MPI::Vector::mean_value() is not implemented yet, warn about that... X-Git-Tag: v8.0.0~4587 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165600bcda7831822eb02f02d410d2d6b161cc43;p=dealii.git PETScWrappers::MPI::Vector::mean_value() is not implemented yet, warn about that fact. git-svn-id: https://svn.dealii.org/trunk@23072 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/petsc_vector_base.cc b/deal.II/source/lac/petsc_vector_base.cc index 3ada9aee1d..36049663f9 100644 --- a/deal.II/source/lac/petsc_vector_base.cc +++ b/deal.II/source/lac/petsc_vector_base.cc @@ -414,6 +414,11 @@ namespace PETScWrappers PetscScalar VectorBase::mean_value () const { +#ifdef DEBUG + Assert(dynamic_cast(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;