From 40c34f287e56e2da5be2bf2e45690e948306954f Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 11 Aug 2013 01:24:14 +0200
Subject: [PATCH] [Cleanup] Use C++11

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

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index c6c93d62..5571ac5c 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -391,8 +391,8 @@ int main(int argc, char *argv[]) {
       // condition match up at t=0
       double v_initial_const;
       velocityDirichletFunction.evaluate(0.0, v_initial_const);
-      for (size_t i = 0; i < v_initial.size(); ++i)
-        v_initial[i][0] = v_initial_const;
+      for (auto &x : v_initial)
+        x[0] = v_initial_const;
     }
     VectorType a_initial(finestSize);
     a_initial = 0.0;
-- 
GitLab