aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ambigator.c4
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",