]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rename a variable to avoid some potential for confusion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Oct 2011 18:56:58 +0000 (18:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Oct 2011 18:56:58 +0000 (18:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@24531 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 4b4c7a35aeac1614c5d3b4fdc8261e8463a73fb0..6d086e26c63ab62aa0917886a523c2e553e17ea9 100644 (file)
@@ -2128,7 +2128,7 @@ namespace Step31
                phi_T[k]      = temperature_fe_values.shape_value (k, q);
              }
 
-           const double old_Ts
+           const double T_term_for_rhs
              = (use_bdf2_scheme ?
                 (old_temperature_values[q] *
                  (1 + time_step/old_time_step)
@@ -2160,7 +2160,7 @@ namespace Step31
                 old_velocity_values[q]);
 
            for (unsigned int i=0; i<dofs_per_cell; ++i)
-             local_rhs(i) += (old_Ts * phi_T[i]
+             local_rhs(i) += (T_term_for_rhs * phi_T[i]
                               -
                               time_step *
                               extrapolated_u * ext_grad_T * phi_T[i]
index 14cc93c82f4e9de42bb7306e17354a929727f65a..f1ad6a271858cdb5d2331979a4fdde455b59bf2d 100644 (file)
@@ -3272,7 +3272,7 @@ namespace Step32
          }
 
 
-       const double old_Ts
+       const double T_term_for_rhs
          = (use_bdf2_scheme ?
             (scratch.old_temperature_values[q] *
              (1 + time_step/old_time_step)
@@ -3324,14 +3324,14 @@ namespace Step32
             scratch.old_strain_rates[q]);
 
        const double gamma
-         = ((EquationData::radiogenic_heating * EquationData::density(old_Ts)
+         = ((EquationData::radiogenic_heating * EquationData::density(T_term_for_rhs)
              +
              2 * EquationData::eta * extrapolated_strain_rate * extrapolated_strain_rate) /
-            (EquationData::density(old_Ts) * EquationData::specific_heat));
+            (EquationData::density(T_term_for_rhs) * EquationData::specific_heat));
 
        for (unsigned int i=0; i<dofs_per_cell; ++i)
          {
-           data.local_rhs(i) += (old_Ts * scratch.phi_T[i]
+           data.local_rhs(i) += (T_term_for_rhs * scratch.phi_T[i]
                                  -
                                  time_step *
                                  extrapolated_u * ext_grad_T * scratch.phi_T[i]

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.