summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 {