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_cgm.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_cgm.cpp')
-rw-r--r-- | src/wolff_cgm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wolff_cgm.cpp b/src/wolff_cgm.cpp index 7613691..ec3ae36 100644 --- a/src/wolff_cgm.cpp +++ b/src/wolff_cgm.cpp @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) { gsl_rng_set(r, rand_seed()); // define spin-spin coupling - std::function <double(height_t<double>, height_t<double>)> Z = [] (height_t<double> h1, height_t<double> h2) -> double { + std::function <double(const height_t<double>&, const height_t<double>&)> Z = [] (const height_t<double>& h1, const height_t<double>& h2) -> double { return -pow(h1.x - h2.x, 2); }; |