diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 13:06:54 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 13:06:54 -0400 |
commit | 870555f569bc63fecdc7c0b16e72e4e002f21c13 (patch) | |
tree | 704fc4669fa3c69af8882b10eff0e89321b3be83 /src/wolff_ising.cpp | |
parent | 215c40813a35c4fdc0bb5f1b8fdea125b9e9d2e4 (diff) | |
download | c++-870555f569bc63fecdc7c0b16e72e4e002f21c13.tar.gz c++-870555f569bc63fecdc7c0b16e72e4e002f21c13.tar.bz2 c++-870555f569bc63fecdc7c0b16e72e4e002f21c13.zip |
all the R_t have been objectified
Diffstat (limited to 'src/wolff_ising.cpp')
-rw-r--r-- | src/wolff_ising.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wolff_ising.cpp b/src/wolff_ising.cpp index 93b7ea4..410e046 100644 --- a/src/wolff_ising.cpp +++ b/src/wolff_ising.cpp @@ -120,10 +120,8 @@ int main(int argc, char *argv[]) { state_t <z2_t, ising_t> s(D, L, T, Z, B); // define function that generates self-inverse rotations - std::function <z2_t(gsl_rng *, ising_t)> gen_R = [] (gsl_rng *, ising_t s) -> z2_t { - z2_t rot; - rot.x = true; - return rot; + std::function <z2_t(gsl_rng *, ising_t)> gen_R = [] (gsl_rng *, const ising_t& s) -> z2_t { + return z2_t(true); }; FILE **outfiles = measure_setup_files(measurement_flags, timestamp); |