From c6e982e1f966497cf3d8df05f977d3798bf7b1f7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 2 May 2013 16:44:08 +0200 Subject: get_hkl: Tidy up output from --trim-centrics --- src/get_hkl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3