From 0e0b683041cbbca1b78952cc66e6d6875b2f4ef8 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sat, 25 Feb 2012 21:39:00 +0100
Subject: [PATCH] Use SingletonVectorType

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

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index fe807085..95af7c49 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -297,8 +297,7 @@ int main(int argc, char *argv[]) {
     VectorType u3 = u1;
     VectorType u4 = u1;
 
-    Dune::BlockVector<Dune::FieldVector<double, 1>> s4_old(
-        grid->size(grid->maxLevel(), dim));
+    SingletonVectorType s4_old(grid->size(grid->maxLevel(), dim));
     s4_old = parset.get<double>("state.initial"); // FIXME: magic value (-500 is
                                                   // still workable; -1000 is
                                                   // not)
@@ -309,9 +308,8 @@ int main(int argc, char *argv[]) {
     VectorType u3_diff = u1_diff;
     VectorType u4_diff = u1_diff;
 
-    auto s4_new =
-        Dune::make_shared<Dune::BlockVector<Dune::FieldVector<double, 1>>>(
-            grid->size(grid->maxLevel(), dim));
+    auto s4_new = Dune::make_shared<SingletonVectorType>(
+        grid->size(grid->maxLevel(), dim));
     *s4_new = s4_old;
 
     SingletonVectorType vonMisesStress;
-- 
GitLab