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/partial_sim.c | |
parent | 225f2f78c0f0606ec3b1d305ff084df950b0c6f5 (diff) |
Fixed stream I/O across different versions
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 1252cd86..6e5f1ced 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -390,8 +390,12 @@ static void finalise_job(void *vqargs, void *vwargs) struct worker_args *wargs = vwargs; struct queue_args *qargs = vqargs; int i; + int ret; - write_chunk(qargs->stream, &wargs->image, NULL, 0, 1, NULL); + ret = write_chunk(qargs->stream, &wargs->image, NULL, 0, 1, NULL); + if ( ret != 0) { + ERROR("Warning: error writing stream file.\n"); + } for ( i=0; i<NBINS; i++ ) { qargs->n_ref[i] += wargs->n_ref[i]; |