aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ambigator.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index a922cacc..c55148b3 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -115,9 +115,13 @@ static struct flist *asymm_and_merge(RefList *in, const SymOpList *sym,
get_indices(refl, &h, &k, &l);
- res = 2.0*resolution(cell, h, k, l);
- if ( res < rmin ) continue;
- if ( res > rmax ) continue;
+ if ( cell != NULL ) {
+ ERROR("Can't calculate resolution cutoff - no cell\n");
+ } else {
+ res = 2.0*resolution(cell, h, k, l);
+ if ( res < rmin ) continue;
+ if ( res > rmax ) continue;
+ }
get_asymm(sym, h, k, l, &ha, &ka, &la);