]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Output the numbers of the DoF, not of the constraint. Also, no need to output node...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Mar 2007 17:51:59 +0000 (17:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Mar 2007 17:51:59 +0000 (17:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@14564 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 2ad16f6521e1f4061a73434f6cdb01aae7649282..549c08d27551484eb4f67dd125b022378eb6e68e 100644 (file)
@@ -450,6 +450,7 @@ void ConstraintMatrix::merge (const ConstraintMatrix &other_constraints)
                                   // constraints in the two objects
                                   // are for different degrees of
                                   // freedom
+#ifdef DEBUG  
   if (true)
     {
                                       // first insert all dofs in
@@ -461,8 +462,10 @@ void ConstraintMatrix::merge (const ConstraintMatrix &other_constraints)
 
                                       // ...then check whether it
                                       // appears in the other object
-                                      // as well. note that we have
-                                      // to do this in a somewhat
+                                      // as well (in which case we
+                                      // would need to issue an
+                                      // error). note that we have to
+                                      // do this in a somewhat
                                       // complicated style since the
                                       // two objects may not be
                                       // sorted
@@ -491,6 +494,7 @@ void ConstraintMatrix::merge (const ConstraintMatrix &other_constraints)
          AssertThrow (this_dofs.find (e->first) == this_dofs.end(),
                       ExcDoFIsConstrainedToConstrainedDoF (e->first));
     }
+#endif
 
                                   // store the previous state with
                                   // respect to sorting
@@ -1393,9 +1397,8 @@ ConstraintMatrix::write_dot (std::ostream &out) const
       << std::endl;
   for (unsigned int i=0; i!=lines.size(); ++i)
     {
-      out << "  " << i << ";\n";
       for (unsigned int j=0; j!=lines[i].entries.size(); ++j)
-       out << "  " << i << "->" << lines[i].entries[j].first
+       out << "  " << lines[i].line << "->" << lines[i].entries[j].first
            << "; // weight: "
            << lines[i].entries[j].second
            << "\n";

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.