aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-07-10 16:35:50 +0200
committerThomas White <taw@physics.org>2014-07-21 15:31:58 +0200
commit282dee197bce06f9d37655c1775f53f6646e2e5d (patch)
treecef8f4803f75b4e78dd77202da3fe479dbc66014 /src/indexamajig.c
parent0508fc381cda5a3ead7069624ae5036183eee840 (diff)
Copy geometry file into stream
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,