From 4aaffd180ef80dbb6b9b18d170d4ab8a5b345564 Mon Sep 17 00:00:00 2001
From: Matthias Frey <matthias.frey@psi.ch>
Date: Wed, 15 Jul 2020 12:06:20 +0200
Subject: [PATCH] RealDiracMatrix: fix if-statement

---
 src/Distribution/RealDiracMatrix.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Distribution/RealDiracMatrix.cpp b/src/Distribution/RealDiracMatrix.cpp
index fdf132de4..3ccfac98a 100644
--- a/src/Distribution/RealDiracMatrix.cpp
+++ b/src/Distribution/RealDiracMatrix.cpp
@@ -259,7 +259,7 @@ void RealDiracMatrix::transform(short i, double phi,
     if (phi) {  // if phi == 0 --> nothing happens, since R and invR would be identity_matrix matrix
         sparse_matrix_t I = boost::numeric::ublas::identity_matrix<double>(4);
 
-        if (i < 7 && i != 0 && i < 11 && i != 14) {
+        if (i < 7 && i != 0 && i > 10 && i != 14) {
             R = I * std::cosh(phi) + getRDM(i) * std::sinh(phi);
             invR = I * std::cosh(phi) - getRDM(i) * std::sinh(phi);
         } else {
-- 
GitLab