fixed error handling in write_dim(), also converted dimscale creation to H5Dcreate2()
fixed error handling in write_dim(), also converted dimscale creation to H5Dcreate2()

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c