From 1dc95ad6e6a3734401e924a6c985187ed65ec11e Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 14 Dec 2008 03:57:10 +0000 Subject: [PATCH] Hopefully make compile. git-svn-id: https://svn.dealii.org/trunk@17943 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-31/step-31.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index 793c6c9323..2d1b94c356 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -986,7 +986,7 @@ compute_viscosity (const std::vector &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::assemble_temperature_system () const std::pair 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::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