From dd2c47db3512658858685c83dd772603203aaab1 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 22 Jul 2018 01:20:29 -0400 Subject: potts now fully functional --- lib/symmetric.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/symmetric.h') diff --git a/lib/symmetric.h b/lib/symmetric.h index 0b292a6..a73b403 100644 --- a/lib/symmetric.h +++ b/lib/symmetric.h @@ -6,6 +6,7 @@ #include "types.h" #ifdef __cplusplus +#include "potts.h" extern "C" { #endif @@ -39,11 +40,11 @@ void init(symmetric_t *p) { template void free_spin(symmetric_t p) { - free(p->perm); + free(p.perm); } template -symmetric_t copy(symmetric_t x) { +symmetric_t copy(symmetric_t x) { symmetric_t x2; x2.perm = (q_t *)malloc(q * sizeof(q_t)); -- cgit v1.2.3-70-g09d2