Commit e5999c6a authored by Daniel Wortmann's avatar Daniel Wortmann

Fixed -hdf true option

parent 2804a741
......@@ -48,7 +48,7 @@ if (JUDFT_USE_HDF5)
target_compile_definitions(juDFT PUBLIC CPP_HDF)
target_link_libraries(juDFT hdf5_fortran hdf5)
if (JUDFT_COMPILE_HDF)
add_dependencies(juDFT hdf5_fortran-static)
target_link_libraries(juDFT hdf5_fortran-static)
endif()
endif()
if (JUDFT_USE_HDF5MPI)
......
  • Hey @wortmann,

    it seems there is still an issue with the HDF5 library feature:

    > $ make                                                                                                                                                                                           [±develop ●]
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/args.F90.o
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/usage_data.F90.o
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/xmlOutput.F90.o
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/time.F90.o
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/stop.F90.o
    [  0%] Building Fortran object juDFT/CMakeFiles/juDFT.dir/hdf_accessprp.F90.o
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(8): error #7013: This module file was not generated by any release of this compiler.   [HDF5]
        USE hdf5
    --------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(14): error #6683: A kind type parameter must be a compile-time constant.   [HID_T]
        integer(hid_t)   :: access_prp(100)
    ------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(32): error #6683: A kind type parameter must be a compile-time constant.   [HSIZE_T]
          integer(hsize_t)  :: mem_increment
    --------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(33): error #6683: A kind type parameter must be a compile-time constant.   [HSIZE_T]
          integer(hsize_t)  :: alignment
    --------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(142): error #6683: A kind type parameter must be a compile-time constant.   [HID_T]
          INTEGER(hid_t)          :: hdf_access_prp
    --------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(94): error #6404: This name does not have a type, and must have an explicit type.   [H5P_DEFAULT_F]
                access_prp(n)=H5P_DEFAULT_f
    --------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(97): error #6404: This name does not have a type, and must have an explicit type.   [H5P_FILE_ACCESS_F]
            call  h5pcreate_f(H5P_FILE_ACCESS_F, access_prp(n), hdferr)
    --------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(121): error #6683: A kind type parameter must be a compile-time constant.   [HSIZE_T]
                if (alignment>0) CALL h5pset_alignment_f(access_prp(n), INT(0,hsize_t),alignment, hdferr)
    --------------------------------------------------------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(121): warning #7319: This argument's data type is incompatible with this intrinsic procedure; procedure assumed EXTERNAL.   [INT]
                if (alignment>0) CALL h5pset_alignment_f(access_prp(n), INT(0,hsize_t),alignment, hdferr)
    --------------------------------------------------------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(121): error #6404: This name does not have a type, and must have an explicit type.   [INT]
                if (alignment>0) CALL h5pset_alignment_f(access_prp(n), INT(0,hsize_t),alignment, hdferr)
    --------------------------------------------------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(127): error #6404: This name does not have a type, and must have an explicit type.   [HSIZE_T]
                if (alignment>0) CALL h5pset_alignment_f(access_prp(n), INT(0,hsize_t),alignment, hdferr)
    --------------------------------------------------------------------------^
    /Users/redies/fleur/juDFT/hdf_accessprp.F90(133): error #6632: Keyword arguments are invalid without an explicit interface.   [CALLEDBY]
            call judft_error("Unkown driver",calledby="gf_io2dmat")
    -----------------------------------------^
    compilation aborted for /Users/redies/fleur/juDFT/hdf_accessprp.F90 (code 1)
    make[2]: *** [juDFT/CMakeFiles/juDFT.dir/hdf_accessprp.F90.o] Error 1
    make[1]: *** [juDFT/CMakeFiles/juDFT.dir/all] Error 2
    make: *** [all] Error 2

    This was a completly clean build.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment