]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve step-35 and step-44. 1021/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 16 Jun 2015 16:40:25 +0000 (11:40 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 16 Jun 2015 16:40:25 +0000 (11:40 -0500)
examples/step-35/step-35.cc
examples/step-44/step-44.cc

index d89d0392942d89f8a9d16d03253e49d814606060..6599ca636ab9bb189f50a1ca319e0da06f9638ce 100644 (file)
@@ -984,7 +984,7 @@ namespace Step35
     for (unsigned int d=0; d<dim; ++d)
       {
         u_star[d].equ (2., u_n[d]);
-        u_star[d].add (-1, u_n_minus_1[d]);
+        u_star[d] -=  u_n_minus_1[d];
       }
   }
 
index bf26553a97d0fd9a0cb3376f1c190024a37c4e59..c6816bd525bea5c3eec43bb8491dccc57ee63399 100644 (file)
@@ -2663,8 +2663,8 @@ namespace Step44
       //      \mathsf{\mathbf{K}}^{-1}_{\widetilde{p} \widetilde{J}}
       //      \mathsf{\mathbf{F}}_{\widetilde{p}}
       //      $
-      A.block(J_dof).equ(1.0, system_rhs.block(J_dof));
-      A.block(J_dof).add(-1.0, B.block(J_dof));
+      A.block(J_dof) = system_rhs.block(J_dof);
+      A.block(J_dof) -= B.block(J_dof);
       //      $
       //      \mathsf{\mathbf{A}}_{\widetilde{J}}
       //      =

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.