]> 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:43:43 +0000 (18:43 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Jan 2009 18:43:43 +0000 (18:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@18311 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 2598c7315834bf382c07c3f7c34c0781b7f049ec..68326185731256c2d674f9470f91b5d974218170 100644 (file)
@@ -315,7 +315,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;
 
 
     const Epetra_Comm                  &trilinos_communicator;
@@ -556,7 +556,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.