From 274f3a762ef1ca69f5a219d895d86b534de84e27 Mon Sep 17 00:00:00 2001 From: Alexey Ozeritskiy Date: Sat, 9 May 2020 01:03:15 +0300 Subject: [PATCH] Properly initalization of velocity vector --- examples/step-35/step-35.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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]); } } -- 2.39.5