aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 3ab1950b..09a8b77a 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -299,18 +299,9 @@ static void apply_shift(Crystal *cr, int k, double shift)
break;
case GPARAM_OSF :
- if ( isnan(shift) ) {
- ERROR("Refusing nan shift of OSF\n");
- } else {
- t = crystal_get_osf(cr);
- t += shift;
- if ( t < 0.0 ) {
- ERROR("Refusing to make OSF negative.\n");
- exit(0);
- } else {
- crystal_set_osf(cr, t);
- }
- }
+ t = crystal_get_osf(cr);
+ t += shift;
+ crystal_set_osf(cr, t);
break;
case GPARAM_ASX :