From: bangerth Date: Tue, 4 Oct 2011 18:52:59 +0000 (+0000) Subject: Clean up code somewhat. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e25d12bece5ba012f8702eaed21e0ef036536a1d;p=dealii-svn.git Clean up code somewhat. git-svn-id: https://svn.dealii.org/trunk@24530 0785d39b-7218-0410-832d-ea1e28bc413d --- 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]);