]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clean up code somewhat.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Oct 2011 18:52:59 +0000 (18:52 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Oct 2011 18:52:59 +0000 (18:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@24530 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 245fadd511d35272a2d7302971cff27957fa24f8..4b4c7a35aeac1614c5d3b4fdc8261e8463a73fb0 100644 (file)
@@ -2131,7 +2131,7 @@ namespace Step31
            const double old_Ts
              = (use_bdf2_scheme ?
                 (old_temperature_values[q] *
-                 (time_step + old_time_step) / old_time_step
+                 (1 + time_step/old_time_step)
                  -
                  old_old_temperature_values[q] *
                  (time_step * time_step) /
@@ -2142,17 +2142,20 @@ namespace Step31
            const Tensor<1,dim> ext_grad_T
              = (use_bdf2_scheme ?
                 (old_temperature_grads[q] *
-                 (1+time_step/old_time_step)
+                 (1 + time_step/old_time_step)
                  -
                  old_old_temperature_grads[q] *
-                 time_step / old_time_step)
+                 time_step/old_time_step)
                 :
                 old_temperature_grads[q]);
 
            const Tensor<1,dim> extrapolated_u
              = (use_bdf2_scheme ?
-                (old_velocity_values[q] * (1+time_step/old_time_step) -
-                 old_old_velocity_values[q] * time_step/old_time_step)
+                (old_velocity_values[q] *
+                 (1 + time_step/old_time_step)
+                 -
+                 old_old_velocity_values[q] *
+                 time_step/old_time_step)
                 :
                 old_velocity_values[q]);
 

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.