From fcc79c2d02cd918fafaff69f487b8d680a2dbb14 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 17 Jun 2011 15:22:06 +0200 Subject: Scaling with reference now works It was always working, but I'd set the partialities to 1 in partial_sim but not partialator. --- src/partial_sim.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/partial_sim.c') diff --git a/src/partial_sim.c b/src/partial_sim.c index d089640b..5fc79e6e 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -61,7 +61,6 @@ static void calculate_partials(RefList *partial, double osf, { Reflection *refl; RefListIterator *iter; - int first = 1; for ( refl = first_refl(partial, &iter); refl != NULL; @@ -75,7 +74,6 @@ static void calculate_partials(RefList *partial, double osf, get_indices(refl, &h, &k, &l); get_asymm(h, k, l, &h, &k, &l, sym); p = get_partiality(refl); - p = 1.0; /* FIXME!!! */ rfull = find_refl(full, h, k, l); if ( rfull == NULL ) { @@ -84,10 +82,6 @@ static void calculate_partials(RefList *partial, double osf, Ip = osf * p * get_intensity(rfull); set_int(refl, Ip); } - - if ( !first ) set_redundancy(refl, 0); - first = 0; - } } @@ -292,7 +286,7 @@ int main(int argc, char *argv[]) calculate_partials(image.reflections, osf, full, sym); /* Give a slightly incorrect cell in the stream */ - mess_up_cell(image.indexed_cell); + //mess_up_cell(image.indexed_cell); write_chunk(ofh, &image, STREAM_INTEGRATED); reflist_free(image.reflections); -- cgit v1.2.3