diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-03-10 20:09:59 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-03-10 20:09:59 +0100 |
commit | 7c19d12fd954bc08708f710c3da7cbe9769ed615 (patch) | |
tree | 86dc7e1036ae1dc3f59703129a94a5c909f2966e | |
parent | 65d9edef292567e4ed31859bd191af5cee274d92 (diff) |
Don't try to write reindexed stream without knowing the operator
-rw-r--r-- | src/ambigator.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ambigator.c b/src/ambigator.c index 77f23e8c..4f008633 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -993,7 +993,12 @@ int main(int argc, char *argv[]) STATUS("%i assignments are different from their starting values.\n", n_dif); - write_reindexed_stream(infile, outfile, assignments, amb); + if ( amb != NULL ) { + write_reindexed_stream(infile, outfile, assignments, amb); + } else { + ERROR("Can only write stream with known ambiguity operator.\n"); + ERROR("Try again with -w\n"); + } free(assignments); gsl_rng_free(rng); |