From efcad567ea9414b807017cbaadd7013e9310ca3e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 22 Jun 2017 23:30:16 -0400 Subject: removed unnecessary variable --- lib/wolff_tools.c | 2 +- src/wolff.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wolff_tools.c b/lib/wolff_tools.c index 74e5bd6..b3758cc 100644 --- a/lib/wolff_tools.c +++ b/lib/wolff_tools.c @@ -74,7 +74,7 @@ cluster_t *flip_cluster(const graph_t *g, const double *ps, bool *x, for (uint32_t i = 0; i < nn; i++) { bool is_ext; - uint32_t e, v1, v2, vn, ind; + uint32_t e, v1, v2, vn; int32_t *bond_counter; double prob; diff --git a/src/wolff.c b/src/wolff.c index 81906fa..a8266ff 100644 --- a/src/wolff.c +++ b/src/wolff.c @@ -175,8 +175,6 @@ int main(int argc, char *argv[]) { dC / h->nv, X / h->nv, dX / h->nv); fclose(outfile); - free(bond_probs); - if (output_state) { FILE *state_file = fopen("state.dat", "a"); for (uint32_t i = 0; i < h->nv; i++) { -- cgit v1.2.3-70-g09d2