Query regarding filespace creation

Hi,

       When I create a filespace using the following code:

    hsize_t celldset_sz = 2195543407;
    filespace = H5Screate_simple (1, &celldset_sz, NULL);
    dset_id = H5Dcreate (file_id, "cellinfo", H5T_NATIVE_INT, filespace,
                         H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
    H5Sclose (filespace);
    H5Dclose (dset_id);

     I get the following error:

HDF5-DIAG: Error detected in HDF5 (1.8.9) MPI-process 2:
  #000: H5Dio.c line 228 in H5Dwrite(): not a dataset
    major: Invalid arguments to routine
    minor: Inappropriate type

      Could you tell me why I get this error?

Regards
Suman

Sorry for the email. No errors are raised for the code snippet

Regards
Suman

···

On Tue, Dec 18, 2012 at 10:30 AM, Suman Vajjala <suman.geek@gmail.com>wrote:

2195543407