From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e655b5a5c8c38258712ec9c2cd213c0d73f821cf;p=dealii-svn.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;