diff options
author | Thomas White <taw@physics.org> | 2015-08-31 12:09:24 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-08-31 12:09:24 +0200 |
commit | 87a90f04ce9db14d7f097955468e9e4f2d2f06f3 (patch) | |
tree | 8324b121c9885ab6d6faf92922cf6350c5b24b7e /src | |
parent | 28d58cf0096283f259ff64e70105b96690976bdc (diff) |
Trap attempt to merge zero crystals
Diffstat (limited to 'src')
-rw-r--r-- | src/merge.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/merge.c b/src/merge.c index 97d7762c..9ff64b57 100644 --- a/src/merge.c +++ b/src/merge.c @@ -205,6 +205,11 @@ RefList *merge_intensities(Crystal **crystals, int n, int n_threads, Reflection *refl; RefListIterator *iter; + if ( n == 0 ) { + ERROR("No crystals!\n"); + return NULL; + } + full = reflist_new(); qargs.full = full; |