From 068fbd557a502bd479797b7be6fb135adb43d273 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Fri, 3 May 2019 12:36:42 +0200
Subject: [PATCH] Minor cleanup

---
 src/cosserat-continuum.cc | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc
index 74f82010..afcec807 100644
--- a/src/cosserat-continuum.cc
+++ b/src/cosserat-continuum.cc
@@ -1,6 +1,7 @@
 #include <config.h>
 
 #include <fenv.h>
+#include <array>
 
 // Includes for the ADOL-C automatic differentiation library
 // Need to come before (almost) all others.
@@ -164,7 +165,7 @@ int main (int argc, char *argv[]) try
         lower = parameterSet.get<FieldVector<double,dimworld> >("lower");
         upper = parameterSet.get<FieldVector<double,dimworld> >("upper");
 
-        std::array<unsigned int,dim> elements = parameterSet.get<std::array<unsigned int,dim> >("elements");
+        auto elements = parameterSet.get<std::array<unsigned int,dim> >("elements");
         grid = StructuredGridFactory<GridType>::createCubeGrid(lower, upper, elements);
 
     } else {
@@ -453,9 +454,7 @@ int main (int argc, char *argv[]) try
                 << ",  average deflection: " << averageDef << std::endl;
     }
 
-    // //////////////////////////////
- } catch (Exception& e) {
-
-    std::cout << e << std::endl;
-
- }
+} catch (Exception& e)
+{
+    std::cout << e.what() << std::endl;
+}
-- 
GitLab