From 8f0acaca9c36beaeed406c48b855a6e322bdb34c Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Sun, 6 Aug 2017 23:37:09 +0200 Subject: [PATCH] [MatL] Fix align. of classes using Eigen::Matrix. --- MaterialLib/SolidModels/Ehlers-impl.h | 2 ++ MaterialLib/SolidModels/Lubby2.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MaterialLib/SolidModels/Ehlers-impl.h b/MaterialLib/SolidModels/Ehlers-impl.h index 8ed21d60d47..b6be304df78 100644 --- a/MaterialLib/SolidModels/Ehlers-impl.h +++ b/MaterialLib/SolidModels/Ehlers-impl.h @@ -135,6 +135,8 @@ struct PhysicalStressWithInvariants final double I_1; double J_2; double J_3; + + EIGEN_MAKE_ALIGNED_OPERATOR_NEW; }; /// Holds powers of 1 + gamma_p*theta to base 0, m_p, and m_p-1. diff --git a/MaterialLib/SolidModels/Lubby2.h b/MaterialLib/SolidModels/Lubby2.h index 42740e13ef6..cfdad56041e 100644 --- a/MaterialLib/SolidModels/Lubby2.h +++ b/MaterialLib/SolidModels/Lubby2.h @@ -149,6 +149,8 @@ public: /// iteration KelvinVector eps_M_t; KelvinVector eps_M_j; + + EIGEN_MAKE_ALIGNED_OPERATOR_NEW; }; std::unique_ptr< -- GitLab