diff options
author | Thomas White <taw@physics.org> | 2013-08-01 16:32:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-08-01 16:32:49 +0200 |
commit | d001bcca749215e41a79a0de32e4cc049ace8b86 (patch) | |
tree | b098f602f4c77f6ce51e66e50ed3e74ca7df2684 /src/partialator.c | |
parent | 0d9370a585d27aedd2cdf0d3b082be1cfca8e5e8 (diff) |
Use a struct to contain information for scaling report
Diffstat (limited to 'src/partialator.c')
-rw-r--r-- | src/partialator.c | 11 |
1 files changed, 9 insertions, 2 deletions
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<n_iter; i++ ) { @@ -646,7 +651,9 @@ int main(int argc, char *argv[]) reference, nthreads, noscale, pmodel, min_measurements); - sr_iteration(sr, i+1, crystals, n_crystals, full); + srdata.full = full; + + sr_iteration(sr, i+1, &srdata); } |