Skip to content

Commit

Permalink
virtual creates must use the same datatype as the main file (HDFGroup…
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored and lrknox committed Mar 21, 2024
1 parent 99d2a09 commit c3456ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ main(void)
H5Sselect_none(vspace);

/* Create a virtual dataset */
vdset = H5Dcreate2(vfile, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
vdset = H5Dcreate2(vfile, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Pclose(dcpl);
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ main(void)
H5Sselect_none(vspace);

/* Create a virtual dataset */
vdset = H5Dcreate2(vfile, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
vdset = H5Dcreate2(vfile, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Pclose(dcpl);
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ main(void)
status = H5Pset_virtual(dcpl, vspace, SRC_FILE, SRC_DATASET, src_space);

/* Create a virtual dataset */
dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Dclose(dset);
Expand Down

0 comments on commit c3456ea

Please sign in to comment.