summaryrefslogtreecommitdiff
path: root/src/wolff.c
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-02-02 18:48:23 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-02-02 18:48:23 -0500
commit01584a2f230b8e9a5367580cb5f457692df347dd (patch)
treeaad31b1ee63531591c57c75f0d5fb692c0cc5631 /src/wolff.c
parent7236712c760324fca98c1f0c342000324cfaacb1 (diff)
downloadc++-01584a2f230b8e9a5367580cb5f457692df347dd.tar.gz
c++-01584a2f230b8e9a5367580cb5f457692df347dd.tar.bz2
c++-01584a2f230b8e9a5367580cb5f457692df347dd.zip
fixed graph free
Diffstat (limited to 'src/wolff.c')
-rw-r--r--src/wolff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wolff.c b/src/wolff.c
index 2a10b7a..d577b00 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
if (pretend_ising) {
fprintf(outfile,
- "%u %.15f %" PRIu64 " %.15f %.15f %.15f %.15f %.15f %.15f %.15f %.15f\n",
+ "%" PRIL " %.15f %" PRIcount " %.15f %.15f %.15f %.15f %.15f %.15f %.15f %.15f\n",
L, 2 * T, n_runs,
(2 * E->x - h->ne) / h->nv, 2 * E->dx / h->nv, (M[0]->x - M[1]->x) / h->nv, M[0]->dx / h->nv, 4 * E->c / h->nv, 4 * E->dc / h->nv, 4 * M[0]->c / h->nv, 4 * M[0]->dc / h->nv);
} else {
@@ -178,10 +178,10 @@ int main(int argc, char *argv[]) {
free(s->H_probs);
free(s->M);
free(s->spins);
- free(s->g);
+ graph_free(s->g);
free(s);
free(H);
- free(h);
+ graph_free(h);
return 0;
}