-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the VOL for HDF5 2.0.0 changes. #73
Changes from all commits
32b09d9
250be3c
569adde
cf2b1de
0fe899b
ea07c0c
689cc7c
0d0554e
0042b10
3aca8f7
368b5fd
0ffd842
a8b7940
936b353
c077ef9
a50b135
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- h5_attribute.c 2024-11-12 16:49:52.466955555 -0600 | ||
+++ h5_attribute_logvol.c 2024-11-12 16:47:13.644521620 -0600 | ||
@@ -41,7 +41,7 @@ | ||
/* Operator function */ | ||
|
||
int | ||
-main(void) | ||
+main(int argc, char **argv) | ||
{ | ||
|
||
hid_t file, dataset; /* File and dataset identifiers */ | ||
@@ -79,7 +79,7 @@ | ||
/* | ||
* Create a file. | ||
*/ | ||
- file = H5Fcreate(H5FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); | ||
+ file = H5Fcreate(argv[1], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); | ||
|
||
/* | ||
* Create the dataspace for the dataset in the file. | ||
@@ -167,7 +167,7 @@ | ||
/* | ||
* Reopen the file. | ||
*/ | ||
- file = H5Fopen(H5FILE_NAME, H5F_ACC_RDONLY, H5P_DEFAULT); | ||
+ file = H5Fopen(argv[1], H5F_ACC_RDONLY, H5P_DEFAULT); | ||
|
||
/* | ||
* Open the dataset. | ||
@@ -185,6 +185,7 @@ | ||
|
||
//! [H5Oget_info3_snip] | ||
|
||
+#if 0 | ||
/* | ||
* Find string attribute by iterating through all attributes | ||
*/ | ||
@@ -203,6 +204,7 @@ | ||
ret = H5Aclose(attr); | ||
ret = H5Tclose(atype); | ||
} | ||
+#endif | ||
|
||
//! [H5Oget_info3_snip] | ||
/* |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
--- h5_interm_group.c 2022-03-16 18:21:18.837044757 -0500 | ||
+++ h5_interm_group_logvol.c 2022-03-16 18:21:46.457044898 -0500 | ||
@@ -88,10 +88,13 @@ | ||
--- h5_interm_group.c 2024-11-13 11:56:00.913059201 -0600 | ||
+++ h5_interm_group_logvol.c 2024-11-13 11:56:54.281932771 -0600 | ||
@@ -84,11 +84,12 @@ | ||
g2_id = H5Gopen2(file, "/G1/G2", H5P_DEFAULT); | ||
status = H5Gget_info(g2_id, &g2_info); | ||
printf("Group /G1/G2 has %d member(s)\n", (int)g2_info.nlinks); | ||
- | ||
+#if 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems to pass for me if I activate the code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at the logs, HDF5-DIAG: Error detected in HDF5 (2.0.0) MPI-process 0: It passes because error checking is not done in the examples. |
||
for (i = 0; i < (int)g2_info.nlinks; i++) { | ||
H5Lget_name_by_idx(g2_id, ".", H5_INDEX_NAME, H5_ITER_NATIVE, (hsize_t)i, name, 3, H5P_DEFAULT); | ||
printf("Object's name is %s\n", name); | ||
} | ||
+#endif | ||
+ | ||
H5Gclose(g2_id); | ||
} | ||
H5Fclose(file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guessing this was just carried over from the previous patch, but is there an issue here in the connector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also passes for me when the code is activated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not, however, find the string attribute