diff options
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/reflections.c b/src/reflections.c index 3060bfd..b8d2fa1 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -282,3 +282,14 @@ void reflection_list_from_new_cell(ReflectionList *ordered, Basis *basis) { } +/* Return true if the reflection is of type h00, 0k0 or 0l0 */ +int reflection_is_easy(Reflection *reflection) { + + if ( reflection->h ) return !(reflection->k || reflection->l); + if ( reflection->k ) return !(reflection->h || reflection->l); + if ( reflection->l ) return !(reflection->h || reflection->k); + + return 0; /* 000 */ + +} + |