aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2008-01-17 20:05:02 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2008-01-17 20:05:02 +0000
commit8efb2ecb23ae3d3bbe49366154c2c669820ff693 (patch)
tree3e04e9992b0191c8c2846d77fd771d67bbc86965 /src/reflections.c
parentb9a6168735a171784869a162d0b6b4c187f7354b (diff)
More refinement (bored now..)
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@257 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 8bfa7ff..58a7992 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -235,6 +235,8 @@ ReflectionList *reflection_list_from_cell(Basis *basis) {
double x, y, z;
+ if ( h != 0 ) continue;
+
x = h*basis->a.x + k*basis->b.x + l*basis->c.x;
y = h*basis->a.y + k*basis->b.y + l*basis->c.y;
z = h*basis->a.z + k*basis->b.z + l*basis->c.z;