]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move exception declaration out of function-local scope to a globally visible scope...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 04:30:55 +0000 (04:30 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 04:30:55 +0000 (04:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@29559 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/constraint_matrix.h
deal.II/source/lac/constraint_matrix.cc

index 40d824c3d564cdb46f61c03af23290590e7c1f89..ce286f57c6c27ccb6fbb86c42728aca818f3a8e5 100644 (file)
@@ -1507,6 +1507,24 @@ public:
                   << " should not be stored by this object, but a constraint "
                   << "is being added.");
 
+  /**
+   * Exception
+   *
+   * @ingroup Exceptions
+   */
+  DeclException2 (ExcIncorrectConstraint,
+                 int, int,
+                  << "While distributing the constraint for DoF "
+                  << arg1 << ", it turns out that one of the processors "
+                  << "who own the " << arg2
+                  << " degrees of freedom that x_" << arg1
+                  << " is constrained against does not know about "
+                  << "the constraint on x_" << arg1
+                  << ". Did you not initialize the ConstraintMatrix "
+                  << "with the appropriate locally_relevant set so "
+                  << "that every processor who owns a DoF that constrains "
+                  << "another DoF also knows about this constraint?");
+  
 private:
 
   /**
index 0addcc6ad2b20096ca69aaba2a22a0b076e18aae..33844ad471620b652355d7828803a8ad8324c135 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1743,17 +1743,6 @@ ConstraintMatrix::distribute (PETScWrappers::MPI::Vector &vec) const
         vec(it->line) += 1;
   vec.compress (VectorOperation::add);
 
-  DeclException2 (ExcIncorrectConstraint, int, int,
-                  << "While distributing the constraint for DoF "
-                  << arg1 << ", it turns out that one of the processors "
-                  << "who own the " << arg2
-                  << " degrees of freedom that x_" << arg1
-                  << " is constrained against does not know about "
-                  << "the constraint on x_" << arg1
-                  << ". Did you not initialize the ConstraintMatrix "
-                  << "with the appropriate locally_relevant set so "
-                  << "that every processor who owns a DoF that constrains "
-                  << "another DoF also knows about this constraint?");
   for (constraint_iterator it = lines.begin();
        it != lines.end(); ++it)
     if (vec_owned_elements.is_element(it->line))

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.