aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c6
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];