summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-06-22 23:30:16 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-06-22 23:30:16 -0400
commitefcad567ea9414b807017cbaadd7013e9310ca3e (patch)
tree82e67f187d381f53b7aec0e6d3c34df2bfb2c48c
parent888ccdcd25f958f7d80a2d47d0d83252456897d1 (diff)
downloadc++-efcad567ea9414b807017cbaadd7013e9310ca3e.tar.gz
c++-efcad567ea9414b807017cbaadd7013e9310ca3e.tar.bz2
c++-efcad567ea9414b807017cbaadd7013e9310ca3e.zip
removed unnecessary variable
-rw-r--r--lib/wolff_tools.c2
-rw-r--r--src/wolff.c2
2 files changed, 1 insertions, 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++) {