From 208b463fd4dd6020824b9c89726953e2787ea428 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 11 Mar 2012 22:17:26 +0100
Subject: [PATCH] Cleanup

---
 src/one-body-sample.cc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 06ec0cea..0a8acb75 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -202,18 +202,17 @@ int main(int argc, char *argv[]) {
     VectorType u5 = u4;
 
     SingletonVectorType s4_old(finestSize);
-    SingletonVectorType s5_old(finestSize);
     s4_old = parset.get<double>("boundary.friction.state.initial");
-    s5_old = s4_old;
+    SingletonVectorType s5_old = s4_old;
 
     VectorType u4_diff(finestSize);
     u4_diff = 0.0; // Has to be zero!
     VectorType u5_diff = u4_diff;
 
     auto s4_new = Dune::make_shared<SingletonVectorType>(finestSize);
-    auto s5_new = Dune::make_shared<SingletonVectorType>(finestSize);
     *s4_new = s4_old;
-    *s5_new = *s4_new;
+    auto s5_new = Dune::make_shared<SingletonVectorType>(finestSize);
+    *s5_new = s5_old;
 
     SingletonVectorType vonMisesStress;
 
-- 
GitLab