aboutsummaryrefslogtreecommitdiff
path: root/src/scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-03 17:08:17 +0200
committerThomas White <taw@physics.org>2018-05-07 10:08:02 +0200
commit2fcc4e3721b3ff5006f2d40176577ee2ce57de17 (patch)
tree40808b90aacd51b89b265a48eeb32f27229443c7 /src/scaling.c
parent734840568fd3cad8fc1a915f182247b75c7117fb (diff)
Add SCALE_VERBOSE_ERRORS
Diffstat (limited to 'src/scaling.c')
-rw-r--r--src/scaling.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scaling.c b/src/scaling.c
index 94d885ea..5fbf541a 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -198,7 +198,6 @@ void scale_all(Crystal **crystals, int n_crystals, int nthreads, int scaleflags)
/* Calculates G and B, by which cr's reflections should be multiplied to fit reference */
int scale_one_crystal(Crystal *cr, const RefList *listR, int flags)
{
- int complain_loudly = 0;
const Reflection *reflS;
RefListIterator *iter;
int max_n = 256;
@@ -289,7 +288,7 @@ int scale_one_crystal(Crystal *cr, const RefList *listR, int flags)
}
if ( n < 2 ) {
- if ( complain_loudly ) {
+ if ( flags & SCALE_VERBOSE_ERRORS ) {
ERROR("Not enough reflections for scaling (had %i, but %i remain)\n", nb, n);
if ( n_esdR ) ERROR("%i reference reflection esd\n", n_esdR);
if ( n_esdS ) ERROR("%i subject reflection esd\n", n_esdS);
@@ -320,7 +319,7 @@ int scale_one_crystal(Crystal *cr, const RefList *listR, int flags)
if ( isnan(G) ) {
- if ( complain_loudly ) {
+ if ( flags & SCALE_VERBOSE_ERRORS ) {
ERROR("Scaling gave NaN (%i pairs)\n", n);
if ( n < 10 ) {
int i;