diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-02 11:28:59 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-02 11:28:59 -0400 |
commit | c2d9527e8e4f690a09bb54be4254b4ddded1927c (patch) | |
tree | be9d99a62e04ad744ad11a02e2724092d2d3808c | |
parent | 90ae915b5a7961a36e6a33509b16229244c6615a (diff) | |
download | c++-c2d9527e8e4f690a09bb54be4254b4ddded1927c.tar.gz c++-c2d9527e8e4f690a09bb54be4254b4ddded1927c.tar.bz2 c++-c2d9527e8e4f690a09bb54be4254b4ddded1927c.zip |
stopped saving some unecessary information
-rw-r--r-- | src/wolff_finite.c | 7 |
1 files 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); } |