From 08d77638828dd26571c2840b91782c7fdc0384f7 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 20 Mar 2013 03:56:14 +0000 Subject: [PATCH] Simplify process. git-svn-id: https://svn.dealii.org/trunk@28950 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-26/step-26.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-26/step-26.cc b/deal.II/examples/step-26/step-26.cc index 55148712cb..219ed02b35 100644 --- a/deal.II/examples/step-26/step-26.cc +++ b/deal.II/examples/step-26/step-26.cc @@ -247,15 +247,15 @@ namespace Step26 VectorTools::create_right_hand_side(dof_handler, QGauss(2), rhs_function, tmp); forcing_terms = tmp; - forcing_terms *= theta; + forcing_terms *= time_step * theta; rhs_function.set_time(time - time_step); VectorTools::create_right_hand_side(dof_handler, QGauss(2), rhs_function, tmp); - forcing_terms.add(1 - theta, tmp); + forcing_terms.add(time_step * (1 - theta), tmp); - system_rhs.add(time_step, forcing_terms); + system_rhs += forcing_terms; { BoundaryValuesU boundary_values_u_function; -- 2.39.5