diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-11-24 15:25:12 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-24 16:05:16 +0100 |
commit | 67cc5f23e11cec85747fb770fbca24b541b4bfde (patch) | |
tree | 61dc71a2f00f9ad1f928e27c55427af825653db5 /src/process_image.c | |
parent | 225f2f78c0f0606ec3b1d305ff084df950b0c6f5 (diff) |
Fixed stream I/O across different versions
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/process_image.c b/src/process_image.c index 807facd9..f09d06b4 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -122,6 +122,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, struct image image; int i; int r; + int ret; char *rn; image.features = NULL; @@ -252,9 +253,13 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, iargs->int_diag_k, iargs->int_diag_l, results_pipe); - write_chunk(st, &image, hdfile, - iargs->stream_peaks, iargs->stream_refls, - pargs->filename_p_e->ev); + ret = write_chunk(st, &image, hdfile, + iargs->stream_peaks, iargs->stream_refls, + pargs->filename_p_e->ev); + if ( ret != 0 ) { + ERROR("Error writing stream file.\n"); + } + for ( i=0; i<image.n_crystals; i++ ) { cell_free(crystal_get_cell(image.crystals[i])); |