aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-22 16:06:18 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit500b2962f771103cbaccb7c12573f6a54dca0a93 (patch)
tree279fbbe9408be0f2d224ea25269390166f6f12d5 /src
parentc8117343347f7e19d0ce1721088096caaab16895 (diff)
Take modulus of profile radius
A bit nasty, but avoids lots of NANs
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 1f867d35..5c6faeaa 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -324,12 +324,6 @@ static double residual_f(const gsl_vector *v, void *pp)
crystal_set_image(cr, &im);
apply_parameters(v, pv->initial, pv->rv, cr);
- if ( crystal_get_profile_radius(cr) <= 0.0 ) {
- crystal_free(cr);
- if ( pv->verbose ) STATUS("R < 0\n");
- return GSL_NAN;
- }
-
if ( im.lambda <= 0.0 ) {
crystal_free(cr);
if ( pv->verbose ) STATUS("lambda < 0\n");