From 870555f569bc63fecdc7c0b16e72e4e002f21c13 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 13:06:54 -0400 Subject: all the R_t have been objectified --- lib/state.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/state.h') diff --git a/lib/state.h b/lib/state.h index b57a9e2..eefa0cb 100644 --- a/lib/state.h +++ b/lib/state.h @@ -30,12 +30,11 @@ class state_t { std::function J; std::function H; - state_t(D_t D, L_t L, double T, std::function J, std::function H) : D(D), L(L), g(D, L), T(T), J(J), H(H) { + state_t(D_t D, L_t L, double T, std::function J, std::function H) : D(D), L(L), g(D, L), T(T), R(), J(J), H(H) { nv = g.nv; ne = g.ne; g.add_ext(); spins.resize(nv); - init (&R); E = - (double)ne * J(spins[0], spins[0]) - (double)nv * H(spins[0]); M = spins[0] * nv; last_cluster_size = 0; @@ -52,10 +51,6 @@ class state_t { precomputed_sin[i] = sin(2 * M_PI * (double)i / (double)L); } } - - ~state_t() { - free_spin(R); - } }; -- cgit v1.2.3-70-g09d2