From b6f5548d8ab27a9d7284bfbaff5be4ab0cfa319c Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 8 Apr 2020 12:23:28 +0200 Subject: [PATCH] correct normalization at the corners --- python/damask/_Lambert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_Lambert.py b/python/damask/_Lambert.py index 26bc67b84..d9ad55f6e 100644 --- a/python/damask/_Lambert.py +++ b/python/damask/_Lambert.py @@ -103,7 +103,7 @@ def ball_to_cube(ball): https://doi.org/10.1088/0965-0393/22/7/075013 """ - ball_ = ball/np.linalg.norm(ball) if np.isclose(np.linalg.norm(ball),R1) else ball + ball_ = ball/np.linalg.norm(ball)*R1 if np.isclose(np.linalg.norm(ball),R1) else ball rs = np.linalg.norm(ball_) if rs > R1: raise ValueError