From 1160baa61bad605cf8a1d583e8ae356a54a942df Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 16:18:40 -0400 Subject: many changes, including new spin spaces and groups and cleaning up core library code --- src/wolff_potts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wolff_potts.cpp') diff --git a/src/wolff_potts.cpp b/src/wolff_potts.cpp index 07663d5..2bc306b 100644 --- a/src/wolff_potts.cpp +++ b/src/wolff_potts.cpp @@ -99,7 +99,7 @@ int main(int argc, char *argv[]) { gsl_rng_set(r, rand_seed()); // define spin-spin coupling - std::function , potts_t)> Z = [] (potts_t s1, potts_t s2) -> double { + std::function &, const potts_t&)> Z = [] (const potts_t& s1, const potts_t& s2) -> double { if (s1.x == s2.x) { return 1.0; } else { @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) { }; // define spin-field coupling - std::function )> B = [=] (potts_t s) -> double { + std::function &)> B = [=] (const potts_t& s) -> double { return H_vec[s.x]; }; -- cgit v1.2.3-70-g09d2