]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Hopefully make compile.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Dec 2008 03:57:10 +0000 (03:57 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Dec 2008 03:57:10 +0000 (03:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@17943 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 793c6c9323fe7f843d80f9081d9263139662b1c6..2d1b94c356d579b49d586ed5a4092ad8391cfac0 100644 (file)
@@ -986,7 +986,7 @@ compute_viscosity (const std::vector<double>          &old_temperature,
   for (unsigned int q=0; q < n_q_points; ++q)
     {
       const Tensor<1,dim> u = (old_velocity_values[q] +
-                              old_old_velocity_values[q](d)) / 2;
+                              old_old_velocity_values[q]) / 2;
       
       const double dT_dt = (old_temperature[q] - old_old_temperature[q])
                           / old_time_step;
@@ -2000,6 +2000,8 @@ void BoussinesqFlowProblem<dim>::assemble_temperature_system ()
   const std::pair<double,double>
     global_T_range = get_extrapolated_temperature_range();
 
+  const FEValuesExtractors::Vector velocities (0);
+  
                                   // Now, let's start the loop over all
                                   // cells in the triangulation. Again, we
                                   // need two cell iterators that walk in
@@ -2120,7 +2122,7 @@ void BoussinesqFlowProblem<dim>::assemble_temperature_system ()
               (old_velocity_values[q] * (1+time_step/old_time_step) - 
                old_old_velocity_values[q] * time_step/old_time_step)
               :
-              old_stokes_values[q]);
+              old_velocity_values[q]);
 
          for (unsigned int i=0; i<dofs_per_cell; ++i)
            local_rhs(i) += (old_Ts * 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.