aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-24 17:54:49 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-24 17:54:49 +0000
commit55846b287d574815ccbf31243782f302c403917d (patch)
tree663fff21014f643de48ee831eb74e9462ada81b8 /src/reflections.c
parent74d58e5f81c7b010aa4db3627f119f9df47c10fa (diff)
More reprojection
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@75 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c
index e16bcff..955eb82 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -76,7 +76,7 @@ void reflection_add(ReflectionContext *reflectionctx, double x, double y, double
}
-void reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed int k, signed int l, double intensity, ReflectionType type) {
+Reflection *reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed int k, signed int l, double intensity, ReflectionType type) {
Reflection *new_reflection;
@@ -91,6 +91,8 @@ void reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed
reflectionctx->last_reflection->next = new_reflection;
reflectionctx->last_reflection = new_reflection;
+ return new_reflection;
+
}
/* x and y in metres (in real space!) */