From 33647a56c2c452347fe09d73beab40600fb6b477 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 28 Jul 2020 00:42:02 +0200 Subject: [PATCH] fixed distance computation in periodic product spaces (racing in H2xE no longer freezes) --- nonisotropic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 5feabd5d..3bb61f72 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1428,7 +1428,7 @@ EX namespace hybrid { if(w1.second == w2.second) { int d = PIU(hr::celldistance(w1.first, w2.first)); a = min(s+d, a); - b = max(s-d, a); + b = max(s-d, b); } c = c->cmove(c1->type-1); s++; }