From e25d12bece5ba012f8702eaed21e0ef036536a1d Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 4 Oct 2011 18:52:59 +0000 Subject: [PATCH] Clean up code somewhat. git-svn-id: https://svn.dealii.org/trunk@24530 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-31/step-31.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index 245fadd511..4b4c7a35ae 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -2131,7 +2131,7 @@ namespace Step31 const double old_Ts = (use_bdf2_scheme ? (old_temperature_values[q] * - (time_step + old_time_step) / old_time_step + (1 + time_step/old_time_step) - old_old_temperature_values[q] * (time_step * time_step) / @@ -2142,17 +2142,20 @@ namespace Step31 const Tensor<1,dim> ext_grad_T = (use_bdf2_scheme ? (old_temperature_grads[q] * - (1+time_step/old_time_step) + (1 + time_step/old_time_step) - old_old_temperature_grads[q] * - time_step / old_time_step) + time_step/old_time_step) : old_temperature_grads[q]); const Tensor<1,dim> extrapolated_u = (use_bdf2_scheme ? - (old_velocity_values[q] * (1+time_step/old_time_step) - - old_old_velocity_values[q] * time_step/old_time_step) + (old_velocity_values[q] * + (1 + time_step/old_time_step) + - + old_old_velocity_values[q] * + time_step/old_time_step) : old_velocity_values[q]); -- 2.39.5