aboutsummaryrefslogtreecommitdiff
path: root/src/powder_plot.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-20 17:53:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:33 +0100
commitb143429764665a75dd3baf8c5115bf8553d18d71 (patch)
treeaee21b359e82c9c107e5f82de43c2d703c45538b /src/powder_plot.c
parent012073a3be1bb523588b83d8be0589a5d00676aa (diff)
Symmetry stuff
Diffstat (limited to 'src/powder_plot.c')
-rw-r--r--src/powder_plot.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/powder_plot.c b/src/powder_plot.c
index 6065da07..d073f2ef 100644
--- a/src/powder_plot.c
+++ b/src/powder_plot.c
@@ -318,6 +318,9 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym,
int h, k, l, redundancy;
double q, intensity;
unsigned int nref;
+ SymOpMask *m;
+
+ m = new_symopmask(sym);
nref = num_reflections(image->reflections);
@@ -330,9 +333,8 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym,
if ( use_redundancy ) {
redundancy = get_redundancy(refl);
} else {
- SymOpList *sp = special_position(sym, h, k, l);
- redundancy = num_equivs(sp);
- free_symoplist(sp);
+ special_position(sym, m, h, k, l);
+ redundancy = num_equivs(sym, m);
}
/* Multiply by 2 to get 1/d (in m^-1) */
@@ -348,6 +350,8 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym,
}
+ free_symopmask(m);
+
return n_peaks;
}