From c2d9527e8e4f690a09bb54be4254b4ddded1927c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 2 Jul 2018 11:28:59 -0400 Subject: stopped saving some unecessary information --- src/wolff_finite.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wolff_finite.c b/src/wolff_finite.c index 4bf96b9..05fa154 100644 --- a/src/wolff_finite.c +++ b/src/wolff_finite.c @@ -138,11 +138,14 @@ int main(int argc, char *argv[]) { // as a fast time many machines will actually have it be 64 bits. we cast // it down here to halve space. - for (q_t i = 0; i < s->q - 1; i++) { // if we know the occupation of the first q - 1 states, we know the occupation of the last - fwrite(&(s->M[i]), sizeof(uint32_t), 1, outfile_M); + for (q_t i = 0; i < s->n_bond_types - 1; i++) { // if we know the occupation of all but one state we know the occupation of the last fwrite(&(s->B[i]), sizeof(uint32_t), 1, outfile_B); } + for (q_t i = 0; i < s->q - 1; i++) { // if we know the occupation of all but one state we know the occupation of the last + fwrite(&(s->M[i]), sizeof(uint32_t), 1, outfile_M); + } + fwrite(&cluster_size, sizeof(uint32_t), 1, outfile_S); } -- cgit v1.2.3-54-g00ecf