From: Wolfgang Bangerth Date: Wed, 20 Mar 2013 03:56:14 +0000 (+0000) Subject: Simplify process. X-Git-Tag: v8.0.0~946 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=448d33ab7697888ffa733ca7a448c80fc286aac7;p=dealii.git Simplify process. git-svn-id: https://svn.dealii.org/trunk@28950 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;