aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index d75e24be..fcf97dd4 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -197,6 +197,7 @@ int main(int argc, char *argv[])
char *int_str = NULL;
char *tempdir = NULL;
char *int_diag = NULL;
+ char *geom_filename = NULL;
/* Defaults */
iargs.cell = NULL;
@@ -335,6 +336,7 @@ int main(int argc, char *argv[])
break;
case 'g' :
+ geom_filename = optarg;
iargs.det = get_detector_geometry(optarg);
if ( iargs.det == NULL ) {
ERROR("Failed to read detector geometry from "
@@ -654,15 +656,13 @@ int main(int argc, char *argv[])
}
- st = open_stream_for_write(outfile);
+ st = open_stream_for_write_2(outfile, geom_filename, argc, argv);
if ( st == NULL ) {
ERROR("Failed to open stream '%s'\n", outfile);
return 1;
}
free(outfile);
- write_command(st, argc, argv);
-
/* Prepare the indexer */
if ( indm != NULL ) {
ipriv = prepare_indexing(indm, iargs.cell, iargs.det,