1111module fnet_fnetdata
1212
1313 use h5lt
14- use hdf5
1514
1615 use dftbp_assert
1716 use dftbp_accuracy, only: dp, mc
@@ -557,9 +556,6 @@ subroutine inquireStructures(fname, tStructures)
557556 ! ! auxiliary variable
558557 integer :: iErr
559558
560- ! open the hdf5 interface
561- call h5open_f(iErr)
562-
563559 ! open the dataset file
564560 call h5fopen_f(fname, H5F_ACC_RDONLY_F, file_id, iErr)
565561
@@ -573,9 +569,6 @@ subroutine inquireStructures(fname, tStructures)
573569 ! close the dataset file
574570 call h5fclose_f(file_id, iErr)
575571
576- ! close the hdf5 interface
577- call h5close_f(iErr)
578-
579572 end subroutine inquireStructures
580573
581574
@@ -606,9 +599,6 @@ subroutine inquireTargets(fname, tGlobalTargets, tAtomicTargets, nGlobalTargets,
606599 ! ! auxiliary variables
607600 integer :: iErr
608601
609- ! open the hdf5 interface
610- call h5open_f(iErr)
611-
612602 ! open the dataset file
613603 call h5fopen_f(fname, H5F_ACC_RDONLY_F, file_id, iErr)
614604
@@ -639,9 +629,6 @@ subroutine inquireTargets(fname, tGlobalTargets, tAtomicTargets, nGlobalTargets,
639629 ! close the dataset file
640630 call h5fclose_f(file_id, iErr)
641631
642- ! close the hdf5 interface
643- call h5close_f(iErr)
644-
645632 end subroutine inquireTargets
646633
647634
@@ -666,9 +653,6 @@ subroutine inquireExtFeatures(fname, tFeatures, nFeatures)
666653 ! ! auxiliary variables
667654 integer :: iErr
668655
669- ! open the hdf5 interface
670- call h5open_f(iErr)
671-
672656 ! open the dataset file
673657 call h5fopen_f(fname, H5F_ACC_RDONLY_F, file_id, iErr)
674658
@@ -687,9 +671,6 @@ subroutine inquireExtFeatures(fname, tFeatures, nFeatures)
687671 ! close the dataset file
688672 call h5fclose_f(file_id, iErr)
689673
690- ! close the hdf5 interface
691- call h5close_f(iErr)
692-
693674 end subroutine inquireExtFeatures
694675
695676
@@ -1033,9 +1014,6 @@ subroutine readHdfDataset(fname, dataset)
10331014 ! ! auxiliary variables
10341015 integer :: iErr, iDatapoint, tExist
10351016
1036- ! open the hdf5 interface
1037- call h5open_f(iErr)
1038-
10391017 ! open the dataset file
10401018 call h5fopen_f(fname, H5F_ACC_RDONLY_F, file_id, iErr)
10411019
@@ -1232,9 +1210,6 @@ subroutine readHdfDataset(fname, dataset)
12321210 ! close the dataset file
12331211 call h5fclose_f(file_id, iErr)
12341212
1235- ! close the hdf5 interface
1236- call h5close_f(iErr)
1237-
12381213 ! perform some basic consistency checks
12391214 call dataset% checkConsistency()
12401215
0 commit comments