aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-08-01 09:58:11 +0200
committerThomas White <taw@physics.org>2013-08-01 09:58:11 +0200
commit2d666a28912916b82694dc1c0df8d52571cff2b0 (patch)
tree49f859102c751c30ac7e68ad9edc7401b46a2dc2
parent099e243acdb59d19395786b15e7ea3228a413b04 (diff)
Fix previous commit
-rw-r--r--src/post-refinement.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 041f3a00..3082aa74 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -395,7 +395,6 @@ static gsl_vector *solve_svd(gsl_vector *v, gsl_matrix *M)
gsl_vector_free(s_val);
gsl_matrix_free(SAS);
gsl_matrix_free(S);
- crystal_set_user_flag(cr, 1);
return NULL;
}
/* "SAS" is now "U" */
@@ -419,7 +418,6 @@ static gsl_vector *solve_svd(gsl_vector *v, gsl_matrix *M)
ERROR("Matrix solution failed: %s\n", gsl_strerror(err));
gsl_matrix_free(S);
gsl_vector_free(SinvX);
- crystal_set_user_flag(cr, 1);
return NULL;
}
@@ -550,8 +548,7 @@ static double pr_iterate(Crystal *cr, const RefList *full,
}
} else {
- ERROR("Problem solving equations.\n");
- /* Leave things as they were */
+ crystal_set_user_flag(cr, 1);
}
gsl_matrix_free(M);