aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
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;
+
+}
+