From: bangerth Date: Sun, 11 Mar 2012 12:43:31 +0000 (+0000) Subject: Weaken an assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7276fd775c931da4f7a4f8d2e1fe2e26b140842;p=dealii-svn.git Weaken an assertion. git-svn-id: https://svn.dealii.org/trunk@25247 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/trilinos_vector_base.cc b/deal.II/source/lac/trilinos_vector_base.cc index 275a7c7361..10b217195c 100644 --- a/deal.II/source/lac/trilinos_vector_base.cc +++ b/deal.II/source/lac/trilinos_vector_base.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008, 2010, 2011 by the deal.II authors +// Copyright (C) 2008, 2010, 2011, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -291,7 +291,7 @@ namespace TrilinosWrappers #else return flag == 0; #endif - + } @@ -300,7 +300,12 @@ namespace TrilinosWrappers VectorBase::is_non_negative () const { #ifdef DEAL_II_COMPILER_SUPPORTS_MPI - AssertThrow(false, ExcNotImplemented()); + // if this vector is a parallel one, then + // we need to communicate to determine + // the answer to the current + // function. this still has to be + // implemented + AssertThrow(local_size() == size(), ExcNotImplemented()); #endif // get a representation of the vector and // loop over all the elements