From b830360b85024eff64837cd077c57423d8eaca28 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Jul 2013 11:49:03 +0200 Subject: Tweak error path --- src/partialator.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/partialator.c b/src/partialator.c index 07d7437c..819be9fe 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -220,7 +220,6 @@ static void select_reflections_for_refinement(Crystal **crystals, int n, Reflection *refl; RefListIterator *iter; int n_acc = 0; - int n_nomatch = 0; int n_noscale = 0; int n_fewmatch = 0; int n_ref = 0; @@ -263,8 +262,10 @@ static void select_reflections_for_refinement(Crystal **crystals, int n, } } else { - n_nomatch++; - set_refinable(refl, 0); + ERROR("%3i %3i %3i is scalable, but is" + " not in the reference list.\n", + h, k, l); + abort(); } } @@ -274,10 +275,6 @@ static void select_reflections_for_refinement(Crystal **crystals, int n, // "(%i not scalable, %i few matches, %i total)\n", // i, n_acc, n_noscale, n_fewmatch, n_ref); - /* This would be a silly situation, since there must be a match - * if THIS pattern has a scalable part of the reflection! */ - assert(n_nomatch == 0); - } } -- cgit v1.2.3