diff options
author | Thomas White <taw@physics.org> | 2013-02-05 18:05:30 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-05 18:05:30 +0100 |
commit | 2f06e6a1abf28a22cf78a6c3d89596bec2a6a8c5 (patch) | |
tree | c7c8beda3593ae1dfe31a646f51787c992f59eef /src/indexamajig.c | |
parent | 2ce85a95d86e350b785d206405e97d7317672188 (diff) |
Fixes for indexing pipeline
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 3076ea86..5d57d336 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) char *filename = NULL; char *outfile = NULL; FILE *fh; - Stream *st; + FILE *ofh; char *rval = NULL; int config_noindex = 0; int config_cmfilter = 0; @@ -264,6 +264,7 @@ int main(int argc, char *argv[]) {"peaks", 1, NULL, 2}, {"cell-reduction", 1, NULL, 3}, {"min-gradient", 1, NULL, 4}, + {"record", 1, NULL, 5}, {"cpus", 1, NULL, 6}, {"cpugroup", 1, NULL, 7}, {"cpuoffset", 1, NULL, 8}, @@ -352,6 +353,7 @@ int main(int argc, char *argv[]) case 5 : ERROR("The option '--record' is no longer used.\n"); + /* FIXME: Translate to new style */ break; case 6 : @@ -526,8 +528,8 @@ int main(int argc, char *argv[]) cell = NULL; } - st = open_stream_for_write(outfile); - if ( st == NULL ) { + ofh = fopen(outfile, "w"); + if ( ofh == NULL ) { ERROR("Failed to open stream '%s'\n", outfile); return 1; } @@ -600,7 +602,7 @@ int main(int argc, char *argv[]) iargs.include_reflections = 1; /* FIXME! */ create_sandbox(&iargs, n_proc, prefix, config_basename, fh, - use_this_one_instead, st); + use_this_one_instead, ofh); free(prefix); |