From fdc607dafa91e7678501805ee9d929f3cd20b3dd Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Thu, 4 Jun 2020 13:59:02 +0200 Subject: [PATCH] fix overall minus in PANPHASIA noise --- src/plugins/random_panphasia.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/random_panphasia.cc b/src/plugins/random_panphasia.cc index 1489f59..f2450bf 100644 --- a/src/plugins/random_panphasia.cc +++ b/src/plugins/random_panphasia.cc @@ -502,6 +502,9 @@ public: auto y1(g1.kelem(i, j, k)), y2(g2.kelem(i, j, k)), y3(g3.kelem(i, j, k)), y4(g4.kelem(i, j, k)); g0.kelem(i, j, k) += 3.0 * (y1 * gx * gy * fz + y2 * fx * gy * gz + y3 * gx * fy * gz) + sqrt27 * y4 * gx * gy * gz; + + // fix the overall minus w.r.t. the monofonic noise definition + g0.kelem(i, j, k ) *= -1.0; } } }