]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Print out even inhomogeneity.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 15 Jun 2009 02:59:08 +0000 (02:59 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 15 Jun 2009 02:59:08 +0000 (02:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@18938 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/constraint_matrix.cc

index 25b93e962cc2d88376179b98383134e2cd37dd2a..7539c149f6e43f28acd83fe119bdb76992e68ef6 100644 (file)
@@ -2014,10 +2014,17 @@ void ConstraintMatrix::print (std::ostream &out) const
                                       // constraints as pairs of dofs
                                       // and their weights
       if (lines[i].entries.size() > 0)
-       for (unsigned int j=0; j<lines[i].entries.size(); ++j)
-         out << "    " << lines[i].line
-             << " " << lines[i].entries[j].first
-             << ":  " << lines[i].entries[j].second << "\n";
+       {
+         for (unsigned int j=0; j<lines[i].entries.size(); ++j)
+           out << "    " << lines[i].line
+               << " " << lines[i].entries[j].first
+               << ":  " << lines[i].entries[j].second << "\n";
+
+                                      // print out inhomogeneity. 
+         if (lines[i].inhomogeneity != 0)
+           out << "    " << lines[i].line
+               << ": " << lines[i].inhomogeneity << "\n";
+       }
       else
                                         // but also output something
                                         // if the constraint simply
@@ -2026,7 +2033,7 @@ void ConstraintMatrix::print (std::ostream &out) const
                                         // a linear combination of
                                         // other dofs
        out << "    " << lines[i].line
-           << " = 0"
+           << " = " << lines[i].inhomogeneity
            << "\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.