aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2008-01-07 18:06:05 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2008-01-07 18:06:05 +0000
commita48ab02eddace230f198ae8445c45190a8f1c179 (patch)
treef728dd65afadfcfa98ef076ef0ed485c107d518a /src/reflections.c
parent1ee5beff75915df1c9d30cf816ba41f49c734e99 (diff)
Record the strongest of duplicated measurements
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@241 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 8d6b2e5..0f25e2a 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -212,7 +212,6 @@ Reflection *reflectionlist_find_nearest_type(ReflectionList *reflectionlist, dou
return best;
-
}
/* Generate a list of reflections from a unit cell */
@@ -293,3 +292,19 @@ int reflection_is_easy(Reflection *reflection) {
}
+Reflection *reflectionlist_find(ReflectionList *reflectionlist, signed int h, signed int k, signed int l) {
+
+ Reflection *reflection;
+
+ reflection = reflectionlist->reflections;
+ while ( reflection ) {
+ if ( (reflection->h==h) && (reflection->k==k) && (reflection->l==l) ) {
+ return reflection;
+ }
+ reflection = reflection->next;
+ };
+
+ return NULL;
+
+}
+