From adaa39135ac6d38a041a58b8eba4ce136988abd6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 May 2014 20:52:45 +0200 Subject: get_hkl: Fix a FIXME --- src/get_hkl.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/get_hkl.c') diff --git a/src/get_hkl.c b/src/get_hkl.c index caeccd60..3da68ef7 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -288,6 +288,7 @@ static RefList *expand_reflections(RefList *in, const SymOpList *initial, RefListIterator *iter; RefList *out; SymOpMask *m; + int phase_warning = 0; if ( !is_subgroup(initial, target) ) { ERROR("%s is not a subgroup of %s!\n", symmetry_name(target), @@ -330,10 +331,17 @@ static RefList *expand_reflections(RefList *in, const SymOpList *initial, copy = add_refl(out, he, ke, le); copy_data(copy, refl); - /* FIXME: Make phase negative if the reflection is - * separated from the original via an inversion */ ph = get_phase(refl, &have_phase); - if ( have_phase ) set_phase(copy, -ph); + if ( have_phase ) { + set_phase(copy, ph); + if ( !phase_warning ) { + ERROR("WARNING: get_hkl can't expand " + "phase values correctly when the " + "structure contains glides or " + "screw axes.\n"); + phase_warning = 1; + } + } } -- cgit v1.2.3