aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-04 13:46:10 +0200
committerThomas White <taw@physics.org>2018-05-04 15:21:13 +0200
commitbda480005b278f82800d830d133d4cdba4ea5d97 (patch)
tree983af8c7469ffbf8bed714bd8fc78c570f959012 /src/indexamajig.c
parentd3bcb1e80cded372399c8afa3611799f7af093ad (diff)
Put list of indexing methods into stream header
Needed for when the methods are auto-determined.
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 3cfe2c6e..97ab2725 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -959,15 +959,6 @@ int main(int argc, char *argv[])
}
- /* Open output stream */
- st = open_stream_for_write_3(outfile, geom_filename, iargs.cell,
- argc, argv);
- if ( st == NULL ) {
- ERROR("Failed to open stream '%s'\n", outfile);
- return 1;
- }
- free(outfile);
-
if ( indm_str == NULL ) {
STATUS("No indexing methods specified. I will try to ");
@@ -1039,10 +1030,19 @@ int main(int argc, char *argv[])
ERROR("Failed to set up indexing system\n");
return 1;
}
- free(indm_str);
}
+ /* Open output stream */
+ st = open_stream_for_write_4(outfile, geom_filename, iargs.cell,
+ argc, argv, indm_str);
+ if ( st == NULL ) {
+ ERROR("Failed to open stream '%s'\n", outfile);
+ return 1;
+ }
+ free(outfile);
+ free(indm_str);
+
gsl_set_error_handler_off();
create_sandbox(&iargs, n_proc, prefix, config_basename, fh,