From: bangerth Date: Fri, 31 Dec 2010 13:25:01 +0000 (+0000) Subject: Correct condition in an Assert. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4f378929c3a5d0c5a8233526d4c0ce6260d8403;p=dealii-svn.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