From 3e5f09ae4e6a4efc50d55ceed4d1499dc0886722 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Thu, 23 Jul 2020 19:20:16 +0200
Subject: [PATCH] [PL] Add ShapeMatrixType to initSM.

Can be used then in other places where not all of the
shape matrices are needed. Default to ALL, s.t. there
is no change to the code.
---
 ProcessLib/Utils/InitShapeMatrices.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ProcessLib/Utils/InitShapeMatrices.h b/ProcessLib/Utils/InitShapeMatrices.h
index 2bd8099fd28..6a46162604f 100644
--- a/ProcessLib/Utils/InitShapeMatrices.h
+++ b/ProcessLib/Utils/InitShapeMatrices.h
@@ -18,6 +18,8 @@
 namespace ProcessLib
 {
 template <typename ShapeFunction, typename ShapeMatricesType, int GlobalDim,
+          NumLib::ShapeMatrixType SelectedShapeMatrixType =
+              NumLib::ShapeMatrixType::ALL,
           typename IntegrationMethod>
 std::vector<typename ShapeMatricesType::ShapeMatrices,
             Eigen::aligned_allocator<typename ShapeMatricesType::ShapeMatrices>>
-- 
GitLab