setting initial conditions using HDF5 dataset

95 views
Skip to first unread message

Jianwen Du

unread,
Oct 25, 2023, 6:31:11 PM10/25/23
to pflotran-users
Hi all,

I'm trying to set initial conditions using an HDF5 dataset, but I'm encountering an error that says 'Number of values in dataset does not match dimensions'. I suspect there might be an issue with how I generated the .h5 file. The input file and the .h5 file are stored in https://github.com/Janewendo/pflotran.git for reference. I would greatly appreciate any assistance in resolving this problem.

Error:
 Testing group: lp
 Group "lp" in HDF5 file "pflotran2d.h5" found in file.
 Opening hdf5 file: pflotran2d.h5
 Opening hdf5 group: lp
 WARNING: Time Units assumed to be seconds.
 Opening hdf5 file: pflotran2d.h5
 Opening group: lp
HDF5-DIAG: Error detected in HDF5 (1.12.1) MPI-process 0:
  #000: H5A.c line 706 in H5Aread(): unable to read attribute
    major: Attribute
    minor: Read failed
  #001: H5VLcallback.c line 1189 in H5VL_attr_read(): attribute read failed
    major: Virtual Object Layer
    minor: Read failed
  #002: H5VLcallback.c line 1158 in H5VL__attr_read(): attribute read failed
    major: Virtual Object Layer
    minor: Read failed
  #003: H5VLnative_attr.c line 172 in H5VL__native_attr_read(): unable to read attribute
    major: Attribute
    minor: Read failed
  #004: H5Aint.c line 625 in H5A__read(): unable to convert between src and dst datatypes
    major: Attribute
    minor: Feature is unsupported
  #005: H5T.c line 4973 in H5T_path_find(): can't find datatype conversion path
    major: Datatype
    minor: Can't get value
  #006: H5T.c line 5195 in H5T__path_find_real(): no appropriate function for conversion path
    major: Datatype
    minor: Unable to initialize object
 ERROR: Number of values in dataset does not match dimensions.

In my input file, pflotran.in, my grid dimension is set as 80*1*40
GRID
  TYPE STRUCTURED
  NXYZ 80 1 40
  DXYZ
   0.025d0
   0.5d0
   0.025d0
  END

In the .h5 file, I set the data with dimension XZ with a size 80*40
HDF5 pflotran2d.h5
Group '/'
    Group '/lp'
        Attributes:
            'Dimension':  'XZ'
            'Discretization':  0.025000 0.025000
            'Origin':  0.000000 0.000000
            'Cell Centered':  'TRUE'
        Dataset 'Data'
            Size:  40x80
            MaxSize:  40x80

Sincerely, 
Jianwen

Reply all
Reply to author
Forward
0 new messages