From: Alexey Ozeritskiy Date: Fri, 8 May 2020 22:03:15 +0000 (+0300) Subject: Properly initalization of velocity vector X-Git-Tag: v9.2.0-rc1~59^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274f3a762ef1ca69f5a219d895d86b534de84e27;p=dealii.git Properly initalization of velocity vector --- diff --git a/examples/step-35/step-35.cc b/examples/step-35/step-35.cc index b48218bc5c..4298f427ab 100644 --- a/examples/step-35/step-35.cc +++ b/examples/step-35/step-35.cc @@ -796,12 +796,10 @@ namespace Step35 vel_exact.set_time(t_0); vel_exact.set_component(d); VectorTools::interpolate(dof_handler_velocity, - Functions::ZeroFunction(), + vel_exact, u_n_minus_1[d]); vel_exact.advance_time(dt); - VectorTools::interpolate(dof_handler_velocity, - Functions::ZeroFunction(), - u_n[d]); + VectorTools::interpolate(dof_handler_velocity, vel_exact, u_n[d]); } }