Skip to content

Commit

Permalink
make writes really async?
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed May 16, 2019
1 parent 3cb4c6b commit 514988d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/clib/pio_getput_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,13 +1254,16 @@ int PIOc_put_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
/* Free malloced resources. */
if (ndims && !stride_present)
free(fake_stride);

if (ierr)
return check_netcdf(file, ierr, __FILE__, __LINE__);
}

/* Broadcast and check the return code. */
if ((mpierr = MPI_Bcast(&ierr, 1, MPI_INT, ios->ioroot, ios->my_comm)))
return check_mpi(NULL, file, mpierr, __FILE__, __LINE__);
if (ierr)
return check_netcdf(file, ierr, __FILE__, __LINE__);
/* if ((mpierr = MPI_Bcast(&ierr, 1, MPI_INT, ios->ioroot, ios->my_comm))) */
/* return check_mpi(NULL, file, mpierr, __FILE__, __LINE__); */
/* if (ierr) */
/* return check_netcdf(file, ierr, __FILE__, __LINE__); */
LOG((2, "PIOc_put_vars_tc bcast netcdf return code %d complete", ierr));

return PIO_NOERR;
Expand Down

0 comments on commit 514988d

Please sign in to comment.