From d2c2313bf59c60868b641b052cef3d8be8a5d1a7 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 23 Jul 2013 13:57:17 +0200
Subject: [PATCH] [Cleanup]

---
 src/one-body-sample.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index ea70eb42..446866e9 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -384,11 +384,11 @@ int main(int argc, char *argv[]) {
       initialDisplacementProblemSolver.solve();
     }
     VectorType v_initial(finestSize);
+    v_initial = 0.0;
     {
       // Prescribe a homogeneous velocity field in the x-direction
       // This way, the initial condition for v and the Dirichlet
       // condition match up at t=0
-      v_initial = 0.0;
       double v_initial_const;
       velocityDirichletFunction.evaluate(0.0, v_initial_const);
       for (size_t i = 0; i < v_initial.size(); ++i)
-- 
GitLab