From d3b3e39a525d0c3aa9663f824ba96e0c429a8313 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 00:32:38 -0400 Subject: partially class-ified, ising and On work but potts and height do not --- lib/correlation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/correlation.h') diff --git a/lib/correlation.h b/lib/correlation.h index 26c3a99..49c6ff2 100644 --- a/lib/correlation.h +++ b/lib/correlation.h @@ -11,7 +11,7 @@ double correlation_length(const state_t *s) { double total = 0; for (D_t j = 0; j < s->D; j++) { - total += norm_squared(s->ReF[j]) + norm_squared(s->ImF[j]); + total += norm_squared(s->ReF[j]) + norm_squared(s->ReF[j]); } return total / s->D; -- cgit v1.2.3-70-g09d2