aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-23 20:37:42 +0200
committerThomas White <taw@physics.org>2014-05-23 20:46:59 +0200
commit6d00dece91824e8f7fcd5ba646d5246914e6c0a9 (patch)
treea9434190d7407e2500b4c3717507361d82a36680 /src
parentfb98f51efea510f351ef4a3d3fb75541b45d736a (diff)
Ensure flags are set to zero even if we aren't scaling
Diffstat (limited to 'src')
-rw-r--r--src/hrs-scaling.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 5ce39cc6..b616b675 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -486,7 +486,10 @@ RefList *scale_intensities(Crystal **crystals, int n, RefList *gref,
double *old_osfs;
int done;
- for ( i=0; i<n; i++ ) crystal_set_osf(crystals[i], 1.0);
+ for ( i=0; i<n; i++ ) {
+ crystal_set_user_flag(crystals[i], 0);
+ crystal_set_osf(crystals[i], 1.0);
+ }
if ( noscale ) {
full = lsq_intensities(crystals, n, n_threads, pmodel);