aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-05-02 16:44:08 +0200
committerThomas White <taw@physics.org>2013-05-02 16:44:08 +0200
commitc6e982e1f966497cf3d8df05f977d3798bf7b1f7 (patch)
treeb0d201f662e2b251b77fb9315a75b0a1e6298a74 /src/get_hkl.c
parentd25561dd06146bcce581669769c1595ad076c333 (diff)
get_hkl: Tidy up output from --trim-centrics
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index e69beb51..5fb3cfb6 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -313,6 +313,8 @@ static RefList *trim_centrics(RefList *in, const SymOpList *sym)
Reflection *refl;
RefListIterator *iter;
RefList *out;
+ long long int nref = 0;
+ long long int ntrim = 0;
out = reflist_new();
@@ -328,10 +330,11 @@ static RefList *trim_centrics(RefList *in, const SymOpList *sym)
/* Put it into the asymmetric unit */
get_asymm(sym, h, k, l, &ha, &ka, &la);
+ nref++;
new = find_refl(out, ha, ka, la);
if ( new != NULL ) {
- STATUS("Trimmed %i %i %i\n", h, k, l);
+ ntrim++;
continue;
}
@@ -340,6 +343,8 @@ static RefList *trim_centrics(RefList *in, const SymOpList *sym)
copy_data(new, refl);
}
+ STATUS("Trimmed %lli out of %lli reflections.\n", ntrim, nref);
+
return out;
}