aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-08 17:56:15 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:32 +0100
commitf2473f3f3c29b6d4b1193393c77ca4d21921be4e (patch)
tree7ddf1d229ca8672df4410cc6ff89eeb6a0461433 /src/partialator.c
parent06238f6deee66dc1a90920f335cab5af88e6693c (diff)
Add scaling report skeleton
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index b3d40b02..97c10a7b 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -36,6 +36,7 @@
#include "hrs-scaling.h"
#include "reflist.h"
#include "reflist-utils.h"
+#include "scaling-report.h"
static void show_help(const char *s)
@@ -357,7 +358,6 @@ int main(int argc, char *argv[])
ERROR("Failed to open input file '%s'\n", infile);
return 1;
}
- free(infile);
/* Sanitise output filename */
if ( outfile == NULL ) {
@@ -544,6 +544,8 @@ int main(int argc, char *argv[])
/* Output results */
write_reflist(outfile, full, images[0].indexed_cell);
+ scaling_report("scaling-report.pdf", images, n_usable_patterns, infile);
+
/* Clean up */
for ( i=0; i<n_usable_patterns; i++ ) {
reflist_free(images[i].reflections);
@@ -561,6 +563,7 @@ int main(int argc, char *argv[])
free(images[i].filename);
}
free(images);
+ free(infile);
return 0;
}