aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reflist-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflist-utils.c b/src/reflist-utils.c
index a327b18b..ba212bd1 100644
--- a/src/reflist-utils.c
+++ b/src/reflist-utils.c
@@ -188,6 +188,9 @@ void write_reflections_to_file(FILE *fh, RefList *list, UnitCell *cell)
esd_i = get_esd_intensity(refl);
red = get_redundancy(refl);
+ /* Reflections with redundancy = 0 are not written */
+ if ( red == 0 ) continue;
+
if ( cell != NULL ) {
s = 2.0 * resolution(cell, h, k, l);
snprintf(res, 16, "%10.2f", s/1e9);