]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make the compute_viscosity function 'const'.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Jan 2009 18:44:25 +0000 (18:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Jan 2009 18:44:25 +0000 (18:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@18312 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 77d795f16f5b39eccfc6845fcf0edccce7be0763..0d1da76c1611ba6f3d258ed102efae7c7ca7edc7 100644 (file)
@@ -604,7 +604,7 @@ class BoussinesqFlowProblem
                      const std::vector<double>          &gamma_values,
                      const double                        global_u_infty,
                      const double                        global_T_variation,
-                     const double                        cell_diameter);
+                     const double                        cell_diameter) const;
 
 
     Triangulation<dim>                  triangulation;
@@ -984,7 +984,7 @@ compute_viscosity (const std::vector<double>          &old_temperature,
                   const std::vector<double>          &gamma_values,
                   const double                        global_u_infty,
                   const double                        global_T_variation,
-                  const double                        cell_diameter)
+                  const double                        cell_diameter) const
 {
   const double beta = 0.015 * dim;
   const double alpha = 1;

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.