From e655b5a5c8c38258712ec9c2cd213c0d73f821cf Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 27 Dec 2010 19:26:56 +0000 Subject: [PATCH] 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 --- deal.II/source/lac/petsc_vector_base.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5