From: Wolfgang Bangerth Date: Fri, 31 Dec 2010 13:25:01 +0000 (+0000) Subject: Correct condition in an Assert. X-Git-Tag: v8.0.0~4567 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b507e451766f1f9d2c725d444c2b43d9cae34fe8;p=dealii.git Correct condition in an Assert. git-svn-id: https://svn.dealii.org/trunk@23092 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 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