summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wolff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wolff.c b/src/wolff.c
index 7675889..81906fa 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -87,7 +87,9 @@ int main(int argc, char *argv[]) {
s->M = h->nv;
s->H = -(1.0 * h->ne) - H * h->nv;
- double *bond_probs = get_bond_probs(T, H, s);
+ double *bond_probs = (double *)malloc(2 * sizeof(double));
+ bond_probs[0] = 1 - exp(-2 / T);
+ bond_probs[1] = 1 - exp(-2 * fabs(H) / T);
double diff = 1e31;
uint64_t n_runs = 0;