aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-11-09 11:27:15 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:39 +0100
commit97193f88afab414256103894cd4488f255c37b36 (patch)
treea3d4ccc42025032b3f96f6d5808b33d85e193c42 /src
parent96e73c466f17d533f544db1d2779405f73ff2877 (diff)
get_hkl: Only expand phases we have
Diffstat (limited to 'src')
-rw-r--r--src/get_hkl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index 7d3b5181..cb0446d8 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -264,6 +264,8 @@ static RefList *expand_reflections(RefList *in, const SymOpList *target,
signed int he, ke, le;
Reflection *new;
+ int have_phase;
+ double ph;
/* Get the equivalent */
get_equiv(initial, m, j, h, k, l, &he, &ke, &le);
@@ -277,6 +279,10 @@ static RefList *expand_reflections(RefList *in, const SymOpList *target,
/* FIXME: Make phase negative if the reflection is
* separated from the original via an inversion */
+ get_phase(refl, &have_phase);
+ if ( have_phase ) {
+ set_ph(new, -ph);
+ }
}