diff options
Diffstat (limited to 'src/dirax.c')
-rw-r--r-- | src/dirax.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dirax.c b/src/dirax.c index c4afbce..79b20ea 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -387,11 +387,9 @@ static void dirax_send_random_selection(ReflectionList *r, int n, FILE *fh) ra = ((long long int)random() * (long long int)n); ra /= RAND_MAX; if ( used[ra] == 'U' ) { - printf("%lli - already used\n", ra); continue; } - printf("Selected reflection %lli\n", ra); /* Dig out the correct reflection. A little faffy * because of the linked list */ @@ -401,10 +399,10 @@ static void dirax_send_random_selection(ReflectionList *r, int n, FILE *fh) } /* Limit resolution of reflections */ - if ( ( (ref->x/1e9)*(ref->x/1e9) - + (ref->y/1e9)*(ref->y/1e9) - + (ref->z/1e9)*(ref->z/1e9) ) > (20e9)*(20e9) ) - continue; +// if ( ( (ref->x/1e9)*(ref->x/1e9) +// + (ref->y/1e9)*(ref->y/1e9) +// + (ref->z/1e9)*(ref->z/1e9) ) > (20e9)*(20e9) ) +// continue; fprintf(fh, "%10f %10f %10f %8f\n", ref->x/1e10, ref->y/1e10, |