Skip to content
Snippets Groups Projects
Commit 83e8ae45 authored by Thomas White's avatar Thomas White
Browse files

Remove check for rlow > rhigh

I'm happy that there are no gremlins here, now.  This happens only for 000,
where rlow and rhigh both go to zero.  It doesn't make sense to have a special
check for the condition.
parent 605ed411
No related branches found
No related tags found
No related merge requests found
......@@ -151,11 +151,6 @@ static Reflection *check_reflection(struct image *image,
cez = -cos(image->div/2.0) * klow;
rlow = klow - distance(cet, cez, tl, zl); /* Loss of precision */
if ( rlow < rhigh ) {
STATUS("%i %i %i\n", h, k, l);
return NULL;
}
if ( (signbit(rlow) == signbit(rhigh))
&& (fabs(rlow) > image->profile_radius)
&& (fabs(rhigh) > image->profile_radius) ) return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment