]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Inhomogeneity was applied in the wrong block when merging constraints.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 30 Jun 2009 06:04:39 +0000 (06:04 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 30 Jun 2009 06:04:39 +0000 (06:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@19004 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/constraint_matrix.cc

index 8f97d2a0cc7439d48a306df53a537333cc815732..2762c836df24b44f0d3c4ec7ee5940b7079e9b4e 100644 (file)
@@ -676,16 +676,16 @@ void ConstraintMatrix::merge (const ConstraintMatrix &other_constraints)
            {
              Assert (tmp_other_lines[i]->line == line->entries[i].first,
                      ExcInternalError());
-             
+
              const double weight = line->entries[i].second;
              for (std::vector<std::pair<unsigned int, double> >::const_iterator
                     j=tmp_other_lines[i]->entries.begin();
                   j!=tmp_other_lines[i]->entries.end(); ++j)
                tmp.push_back (std::make_pair(j->first, j->second*weight));
 
+             line->inhomogeneity += tmp_other_lines[i]->inhomogeneity *  
+               line->entries[i].second;
            };
-         line->inhomogeneity += tmp_other_lines[i]->inhomogeneity *  
-           line->entries[i].second;
        };
                                       // finally exchange old and
                                       // newly resolved 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.