Skip to content

Commit

Permalink
further async development
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed May 12, 2016
1 parent 6e7e780 commit cd4421f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/clib/pio_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,31 +382,6 @@ int att_get_handler(iosystem_desc_t *ios)
LOG((1, "att_get_handler ncid = %d varid = %d namelen = %d name = %s iotype = %d",
ncid, varid, namelen, name, iotype));

/* Get the length and the type of the attribute. */
LOG((1, "att_get_handler magic iotype = %d", iotype));
switch (iotype)
{
#ifdef _NETCDF
#ifdef _NETCDF4
case PIO_IOTYPE_NETCDF4P:
ierr = nc_inq_att(ncid, varid, name, &atttype, (size_t *)&attlen);
break;
case PIO_IOTYPE_NETCDF4C:
#endif
case PIO_IOTYPE_NETCDF:
if (ios->io_rank == 0)
ierr = nc_inq_att(ncid, varid, name, &atttype, (size_t *)&attlen);
break;
#endif
#ifdef _PNETCDF
case PIO_IOTYPE_PNETCDF:
ierr = ncmpi_inq_att(ncid, varid, name, &atttype, &attlen);
break;
#endif
default:
ierr = iotype_error(iotype,__FILE__,__LINE__);
}

/* Allocate space for the attribute data. */
if (!(ip = malloc(attlen * sizeof(int))))
return PIO_ENOMEM;
Expand Down

0 comments on commit cd4421f

Please sign in to comment.