]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't use doubtful programming tricks.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 15 Mar 2004 18:29:44 +0000 (18:29 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 15 Mar 2004 18:29:44 +0000 (18:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@8748 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/matrices.all_dimensions.cc

index 17b21cbb8984f03b7f5c88df41391d99bbac19ef..48ccb07702b7c48a947b7ce1ebc88dc953785a97 100644 (file)
@@ -100,15 +100,18 @@ MatrixTools::apply_boundary_values (const std::map<unsigned int,double> &boundar
                                       // the gauss step more efficient
       number new_rhs;
       if (matrix.diag_element(dof_number) != 0.0)
-       new_rhs = right_hand_side(dof_number)
-               = dof->second * matrix.diag_element(dof_number);
+        {
+          new_rhs = dof->second * matrix.diag_element(dof_number);
+          right_hand_side(dof_number)
+            = new_rhs;
+        }
       else
        {
          matrix.set (dof_number, dof_number,
                       first_nonzero_diagonal_entry);
          new_rhs = right_hand_side(dof_number)
                  = dof->second * first_nonzero_diagonal_entry;
-       };
+       }
 
 
                                       // if the user wants to have

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.