From f46f3e1e27ed886ed7fc9fef88a4395e6da02d59 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Thu, 3 Nov 2011 14:12:48 +0100
Subject: [PATCH] Do not hand out names so freely

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

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index a3dccca8..562c4cb7 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -151,16 +151,15 @@ int main() {
     size_t const solver_maxIterations = 100;
     double const solver_tolerance = 1e-4;
 
+    // Set up grid
     typedef Dune::YaspGrid<dim> GridType;
-
     Dune::FieldVector<double, dim> const end_points(
         1); // nth dimension (zero-indexed) goes from 0 to end_points[n]
-    Dune::FieldVector<int, dim> const elements(
-        2); // number of elements in each direction
-    Dune::FieldVector<bool, dim> const periodic(false);
-
-    GridType grid(end_points, elements, periodic, 0);
-
+    GridType grid(
+        end_points,
+        Dune::FieldVector<int, dim>(2), // number of elements in each direction
+        Dune::FieldVector<bool, dim>(false), // non-periodic in each direction
+        0);                                  // zero overlap (whatever that is)
     grid.globalRefine(refinements);
 
     typedef P1NodalBasis<GridType::LeafGridView, double> P1Basis;
-- 
GitLab