summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-10-10 00:26:35 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-10-10 00:26:35 -0400
commit3b53450b9236dc50abe652913cad17dedfca50df (patch)
tree73b09b41937479f2d9cf9fa524079b5fb098b1bf /src
parent4239e2bfc6701f0b5170132d01af381129618b34 (diff)
downloadc++-3b53450b9236dc50abe652913cad17dedfca50df.tar.gz
c++-3b53450b9236dc50abe652913cad17dedfca50df.tar.bz2
c++-3b53450b9236dc50abe652913cad17dedfca50df.zip
extended NOFIELD support when FINITE_STATES is also invoked
Diffstat (limited to 'src')
-rw-r--r--src/wolff_ising.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wolff_ising.cpp b/src/wolff_ising.cpp
index 24bf74c..a6f43b1 100644
--- a/src/wolff_ising.cpp
+++ b/src/wolff_ising.cpp
@@ -117,7 +117,11 @@ int main(int argc, char *argv[]) {
};
// initialize state object
+#ifndef NOFIELD
state_t <z2_t, ising_t> s(D, L, T, Z, B);
+#else
+ state_t <z2_t, ising_t> s(D, L, T, Z);
+#endif
// define function that generates self-inverse rotations
std::function <z2_t(gsl_rng *, ising_t)> gen_R = [] (gsl_rng *, const ising_t& s) -> z2_t {