diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 16:18:40 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 16:18:40 -0400 |
commit | 1160baa61bad605cf8a1d583e8ae356a54a942df (patch) | |
tree | e7c865f38836a9a03349bbd803aae8be9b37a200 /src/wolff_potts.cpp | |
parent | 870555f569bc63fecdc7c0b16e72e4e002f21c13 (diff) | |
download | c++-1160baa61bad605cf8a1d583e8ae356a54a942df.tar.gz c++-1160baa61bad605cf8a1d583e8ae356a54a942df.tar.bz2 c++-1160baa61bad605cf8a1d583e8ae356a54a942df.zip |
many changes, including new spin spaces and groups and cleaning up core library code
Diffstat (limited to 'src/wolff_potts.cpp')
-rw-r--r-- | src/wolff_potts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <double(potts_t<POTTSQ>, potts_t<POTTSQ>)> Z = [] (potts_t<POTTSQ> s1, potts_t<POTTSQ> s2) -> double { + std::function <double(const potts_t<POTTSQ>&, const potts_t<POTTSQ>&)> Z = [] (const potts_t<POTTSQ>& s1, const potts_t<POTTSQ>& 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 <double(potts_t<POTTSQ>)> B = [=] (potts_t<POTTSQ> s) -> double { + std::function <double(const potts_t<POTTSQ> &)> B = [=] (const potts_t<POTTSQ>& s) -> double { return H_vec[s.x]; }; |