[Darshan-commits] [Git][darshan/darshan][dev-detailed-hdf5-mod] fix logic in h5 version check

Shane Snyder xgitlab at cels.anl.gov
Fri Apr 3 17:05:21 CDT 2020



Shane Snyder pushed to branch dev-detailed-hdf5-mod at darshan / darshan


Commits:
8b935c78 by Shane Snyder at 2020-04-03T17:05:01-05:00
fix logic in h5 version check

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-hdf5.c


Changes:

=====================================
darshan-runtime/lib/darshan-hdf5.c
=====================================
@@ -168,7 +168,7 @@ hid_t DARSHAN_DECL(H5Fcreate)(const char *filename, unsigned flags,
     unsigned majnum, minnum, relnum;
 
     H5get_libversion(&majnum, &minnum, &relnum);
-    if((majnum != H5_VERS_MAJOR) && (minnum != H5_VERS_MINOR))
+    if((majnum != H5_VERS_MAJOR) || (minnum != H5_VERS_MINOR))
     {
         if(my_rank < 0)
             MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
@@ -214,7 +214,7 @@ hid_t DARSHAN_DECL(H5Fopen)(const char *filename, unsigned flags,
     unsigned majnum, minnum, relnum;
 
     H5get_libversion(&majnum, &minnum, &relnum);
-    if((majnum != H5_VERS_MAJOR) && (minnum != H5_VERS_MINOR))
+    if((majnum != H5_VERS_MAJOR) || (minnum != H5_VERS_MINOR))
     {
         if(my_rank < 0)
             MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/8b935c78a977bafa5062c9db7c35113f3c8ed9e9

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/8b935c78a977bafa5062c9db7c35113f3c8ed9e9
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20200403/9de541e7/attachment.html>


More information about the Darshan-commits mailing list