Skip to content

Commit

Permalink
tryhing to isolate put problem
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 6, 2016
1 parent 378ac20 commit b2f19be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/clib/pio_get_nc_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ int PIOc_get_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
#ifdef PNET_READ_AND_BCAST
LOG((1, "PNET_READ_AND_BCAST"));
ncmpi_begin_indep_data(file->fh);

/* Only the IO master does the IO, so we are not really
* getting parallel IO here. */
if (ios->iomaster)
{
switch(xtype)
Expand Down
5 changes: 4 additions & 1 deletion src/clib/pio_put_nc_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ int PIOc_put_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
LOG((2, "PIOc_put_vars_tc request = %d", vdesc->request));

if(ios->io_rank == 0)
{
LOG((2, "PIOc_put_vars_tc io_rank 0 doing pnetcdf call"));
switch(xtype)
{
case NC_BYTE:
Expand All @@ -203,8 +205,9 @@ int PIOc_put_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
break;
default:
LOG((0, "Unknown type for pnetcdf file! xtype = %d", xtype));

}
LOG((2, "PIOc_put_vars_tc io_rank 0 done with pnetcdf call"));
}
else
*request = PIO_REQ_NULL;

Expand Down

0 comments on commit b2f19be

Please sign in to comment.