diff options
author | Thomas White <taw@physics.org> | 2014-03-04 15:42:51 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-03-04 15:42:51 +0100 |
commit | c0356bb0ea8627eba0752b63c7fb0fa86088183f (patch) | |
tree | dea61a0ee7e19fa33fa607c6dc61bcc0c98c4552 /src/ambigator.c | |
parent | 9bb0d608b82f731356a58c24637522a61105ba29 (diff) |
D'oh
Diffstat (limited to 'src/ambigator.c')
-rw-r--r-- | src/ambigator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ambigator.c b/src/ambigator.c index 8a3879e3..c169d63c 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -400,7 +400,7 @@ int main(int argc, char *argv[]) } rng = gsl_rng_alloc(gsl_rng_mt19937); - for ( i=0; i<n_crystals/2; i++ ) { + for ( i=0; i<n_crystals; i++ ) { assignments[i] = (random_flat(rng, 1.0) > 0.5); orig_assignments[i] = assignments[i]; } @@ -410,7 +410,7 @@ int main(int argc, char *argv[]) } n_dif = 0; - for ( i=0; i<n_crystals/2; i++ ) { + for ( i=0; i<n_crystals; i++ ) { if ( orig_assignments[i] != assignments[i] ) n_dif++; } STATUS("%i assignments are different from their starting values.\n", |