]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Weaken an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Mar 2012 12:43:31 +0000 (12:43 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Mar 2012 12:43:31 +0000 (12:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@25247 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/trilinos_vector_base.cc

index 275a7c73615b1d031e2557f9d08020a3300d50fb..10b217195cf325fa44fe0114026115f9a5ea0622 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.