diff options
author | Thomas White <taw@physics.org> | 2015-05-15 16:45:54 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-19 13:57:52 +0200 |
commit | fbf601fd3db284a1df7390b4cb3149830fab5d83 (patch) | |
tree | 818af1cebd0e27daedc6015d810bf6f96489ae13 /src/post-refinement.c | |
parent | a9668bc9b0bbb93cf2bbc7c2048c7019d38f9bdf (diff) |
Refuse to refine any crystal with fewer data points than parameters
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index aed15c2e..103bf487 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -454,7 +454,7 @@ static double pr_iterate(Crystal *cr, const RefList *full, STATUS("%i reflections went into the equations.\n", nref); } - if ( nref == 0 ) { + if ( nref < num_params ) { crystal_set_user_flag(cr, 2); gsl_matrix_free(M); gsl_vector_free(v); |