From 9c0de411983bfadb215b392d746bf6af34e9332c Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 21 Jun 2017 11:29:51 +0200
Subject: [PATCH] [PL] LIE: rotations; Init 3rd coordinate for 2d.

---
 ProcessLib/LIE/Common/Utils.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ProcessLib/LIE/Common/Utils.cpp b/ProcessLib/LIE/Common/Utils.cpp
index 905c26cf8f4..b345f028d4b 100644
--- a/ProcessLib/LIE/Common/Utils.cpp
+++ b/ProcessLib/LIE/Common/Utils.cpp
@@ -28,6 +28,7 @@ void computeNormalVector(MeshLib::Element const& e, unsigned const global_dim,
         auto v1 = (*e.getNode(1)) - (*e.getNode(0));
         element_normal[0] = -v1[1];
         element_normal[1] = v1[0];
+        element_normal[2] = 0;  // not used in 2d but needed for normalization
         element_normal.normalize();
     }
     else if (global_dim == 3)
-- 
GitLab