From a4f378929c3a5d0c5a8233526d4c0ce6260d8403 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 31 Dec 2010 13:25:01 +0000 Subject: [PATCH] Correct condition in an Assert. git-svn-id: https://svn.dealii.org/trunk@23092 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_vector_base.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deal.II/source/lac/petsc_vector_base.cc b/deal.II/source/lac/petsc_vector_base.cc index 36049663f9..68cc7b28ee 100644 --- a/deal.II/source/lac/petsc_vector_base.cc +++ b/deal.II/source/lac/petsc_vector_base.cc @@ -414,10 +414,8 @@ namespace PETScWrappers PetscScalar VectorBase::mean_value () const { -#ifdef DEBUG - Assert(dynamic_cast(this) != 0, - ExcMessage ("::mean_value() not implemented for MPI::Vector.")); -#endif + Assert(dynamic_cast(this) == 0, + ExcMessage ("::mean_value() not implemented for MPI::Vector.")); // get a representation of the vector and // loop over all the elements -- 2.39.5