]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Dont throw an exception any more if we call close and the matrix is
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Aug 2001 10:04:27 +0000 (10:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Aug 2001 10:04:27 +0000 (10:04 +0000)
already close.

git-svn-id: https://svn.dealii.org/trunk@4924 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_constraints.cc

index 3c281f6c1afbf0738b84a0edb7538b9f6c05fee6..4353da70285fc3a4a45d305e019e4ae29948785e 100644 (file)
@@ -184,8 +184,9 @@ void ConstraintMatrix::add_entries (const unsigned int                        li
 
 void ConstraintMatrix::close ()
 {
-  Assert (sorted==false, ExcMatrixIsClosed());
-
+  if (sorted == true)
+    return;
+  
                                   // sort the entries in the different lines
                                   // and strip zero entries
   std::vector<ConstraintLine>::iterator line = lines.begin(),

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.