diff options
author | Thomas White <taw@physics.org> | 2017-12-12 15:30:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-27 17:12:42 +0100 |
commit | d0420aad1a869077c6a420c2bb5915a4b1ebcbf8 (patch) | |
tree | 95d95d164728223a90d3a3e60bdf41c6cb684d87 /src | |
parent | 68022b56c2e0e9acca8f89a71338bcc51ac1082c (diff) |
Iterate over the subject list, not the reference
Diffstat (limited to 'src')
-rw-r--r-- | src/scaling.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scaling.c b/src/scaling.c index 490afb59..78cfed6b 100644 --- a/src/scaling.c +++ b/src/scaling.c @@ -209,18 +209,18 @@ int linear_scale(const RefList *list1, const RefList *list2, double *G) } int nb = 0; - for ( refl1 = first_refl_const(list1, &iter); - refl1 != NULL; - refl1 = next_refl_const(refl1, iter) ) + for ( refl2 = first_refl_const(list2, &iter); + refl2 != NULL; + refl2 = next_refl_const(refl2, iter) ) { signed int h, k, l; double Ih1, Ih2; double esd1, esd2; nb++; - get_indices(refl1, &h, &k, &l); - refl2 = find_refl(list2, h, k, l); - if ( refl2 == NULL ) { + get_indices(refl2, &h, &k, &l); + refl1 = find_refl(list1, h, k, l); + if ( refl1 == NULL ) { continue; } |