From d001bcca749215e41a79a0de32e4cc049ace8b86 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Aug 2013 16:32:49 +0200 Subject: Use a struct to contain information for scaling report --- src/partialator.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index a282744e..6b29a74f 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -333,6 +333,7 @@ int main(int argc, char *argv[]) PartialityModel pmodel = PMODEL_SPHERE; int min_measurements = 2; char *rval; + struct srdata srdata; /* Long options */ const struct option longopts[] = { @@ -611,9 +612,13 @@ int main(int argc, char *argv[]) full = scale_intensities(crystals, n_crystals, reference, nthreads, noscale, pmodel, min_measurements); + srdata.crystals = crystals; + srdata.n = n_crystals; + srdata.full = full; + sr = sr_titlepage(crystals, n_crystals, "scaling-report.pdf", infile, cmdline); - sr_iteration(sr, 0, crystals, n_crystals, full); + sr_iteration(sr, 0, &srdata); /* Iterate */ for ( i=0; i