aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-21 18:12:18 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:20 +0100
commitfa79dc619747eaaf0e8cb25643cb1aaaa0f1fc91 (patch)
treead36d3f2dc80c1a2a72410ba5bd7bbecc2c74682 /src/render_hkl.c
parentaceb2105c179171e9027bd56699bc96f4ea93a03 (diff)
Debug render_hkl
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index aec6d714..7cbc5441 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -104,15 +104,18 @@ static void draw_circles(signed int xh, signed int xk, signed int xl,
double u, v, val, res;
signed int h, k, l;
+ signed int he, ke, le;
Reflection *refl;
+ int r;
h = xi*xh + yi*yh;
k = xi*xk + yi*yk;
l = xi*xl + yi*yl;
/* Got this reflection? */
- refl = find_refl(list, h, k, l);
- if ( refl == NULL ) continue;
+ r = find_equiv_in_list(list, h, k, l, sym, &he, &ke, &le);
+ if ( !r ) continue;
+ refl = find_refl(list, he, ke, le);
switch ( wght ) {
case WGHT_I :
@@ -171,6 +174,7 @@ static void draw_circles(signed int xh, signed int xk, signed int xl,
/* Find max resolution */
res = resolution(cell, h, k, l);
if ( res > *max_res ) *max_res = res;
+
}
}