diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-10-31 17:23:10 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-10-31 17:23:10 +0000 |
commit | d2c4ca0e9358b048946ae9f484474826a278f5ac (patch) | |
tree | b2b4c72d3cb9e47d4d7ece1303ceb04514174fc3 /src/reflections.c | |
parent | 68aaef4f7d3a73153f6052b731aae559da45a4d2 (diff) |
Update the reprojection window after refinement step
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@187 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c index 9f3f1c8..3060bfd 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -223,7 +223,6 @@ ReflectionList *reflection_list_from_cell(Basis *basis) { signed int h, k, l; int max_order_a, max_order_b, max_order_c; - max_res = 20e9; ordered = reflectionlist_new(); @@ -261,3 +260,25 @@ ReflectionList *reflection_list_from_cell(Basis *basis) { } +void reflection_list_from_new_cell(ReflectionList *ordered, Basis *basis) { + + Reflection *ref; + + ref = ordered->reflections; + + while ( ref ) { + + signed int h, k, l; + + h = ref->h; k = ref->k; l = ref->l; + + ref->x = h*basis->a.x + k*basis->b.x + l*basis->c.x; + ref->y = h*basis->a.y + k*basis->b.y + l*basis->c.y; + ref->z = h*basis->a.z + k*basis->b.z + l*basis->c.z; + + ref = ref->next; + + } + +} + |