From 23dbb6ee7b834ebadfc5081b64cef8f98f9c98d6 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sun, 6 Aug 2017 23:20:14 +0200
Subject: [PATCH] [NL] Fix alignment of classes using Eigen::Matrix.

---
 NumLib/Fem/CoordinatesMapping/ShapeMatrices.h | 3 +++
 Tests/NumLib/SteadyDiffusion2DExample1.h      | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/NumLib/Fem/CoordinatesMapping/ShapeMatrices.h b/NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
index 486665226de..6853b0c4b75 100644
--- a/NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
+++ b/NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
@@ -14,6 +14,8 @@
 
 #include <ostream>
 
+#include <Eigen/Core>
+
 namespace NumLib
 {
 
@@ -103,6 +105,7 @@ struct ShapeMatrices
      */
     void write (std::ostream& out) const;
 
+    EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
 }; // ShapeMatrices
 
 
diff --git a/Tests/NumLib/SteadyDiffusion2DExample1.h b/Tests/NumLib/SteadyDiffusion2DExample1.h
index 909e515e9f6..f82b59a0383 100644
--- a/Tests/NumLib/SteadyDiffusion2DExample1.h
+++ b/Tests/NumLib/SteadyDiffusion2DExample1.h
@@ -147,4 +147,6 @@ template<typename IndexType>struct SteadyDiffusion2DExample1
 
     LocalMatrixType _localA;
     LocalVectorType _localRhs;
+
+    EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
 };
-- 
GitLab