]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify process.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 03:56:14 +0000 (03:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 03:56:14 +0000 (03:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@28950 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-26/step-26.cc

index 55148712cbdb3b2c707e0bb94b5c7f5045884188..219ed02b3569063ed7603dd087f3a1bf5a523c63 100644 (file)
@@ -247,15 +247,15 @@ namespace Step26
         VectorTools::create_right_hand_side(dof_handler, QGauss<dim>(2),
                                             rhs_function, tmp);
         forcing_terms = tmp;
-        forcing_terms *= theta;
+        forcing_terms *= time_step * theta;
 
         rhs_function.set_time(time - time_step);
         VectorTools::create_right_hand_side(dof_handler, QGauss<dim>(2),
                                             rhs_function, tmp);
 
-        forcing_terms.add(1 - theta, tmp);
+        forcing_terms.add(time_step * (1 - theta), tmp);
 
-        system_rhs.add(time_step, forcing_terms);
+        system_rhs += forcing_terms;
 
         {
           BoundaryValuesU<dim> boundary_values_u_function;

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.