aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 88912226..ad6d9a49 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -309,6 +309,16 @@ static void display_progress(int n_images, int n_crystals)
}
+static const char *str_flags(Crystal *cr)
+{
+ if ( crystal_get_user_flag(cr) ) {
+ return "N";
+ }
+
+ return "-";
+}
+
+
int main(int argc, char *argv[])
{
int c;
@@ -671,6 +681,21 @@ int main(int argc, char *argv[])
/* Output results */
write_reflist(outfile, full);
+ /* Dump parameters */
+ FILE *fh;
+ fh = fopen("partialator.params", "w");
+ if ( fh == NULL ) {
+ ERROR("Couldn't open partialator.params!\n");
+ } else {
+ for ( i=0; i<n_crystals; i++ ) {
+ fprintf(fh, "%4i %5.2f %8.5e %s\n", i,
+ crystal_get_osf(crystals[i]),
+ crystal_get_image(crystals[i])->div,
+ str_flags(crystals[i]));
+ }
+ fclose(fh);
+ }
+
/* Clean up */
for ( i=0; i<n_crystals; i++ ) {
reflist_free(crystal_get_reflections(crystals[i]));