Commit 42c9cf05 authored by Daniel Wortmann's avatar Daniel Wortmann

Added a special config for IFF again and removed the find_package(HDF5) from...

Added a special config for IFF again and removed the find_package(HDF5) from cmake as this fails for newer cmake versions
parent 1a4d83eb
echo "Using special config for IFF-cluster"
echo "Wannier is switched off-manually"
#Set the compilers to mpiifort, mpiicc, mpiicpc
export FC=mpiifort
export CC=mpiicc
export CXX=mpiicpc
FLEUR_LIBRARIES="-lxml2;-lscalapack_lp64;-lmkl_blacs_intelmpi_lp64;-mt_mpi"
CLI_USE_WANNIER=FALSE
CLI_USE_CHASE=FALSE
#Set environment variables usefull for external dependencies, e.g. ELPA
export CFLAGS=-mkl
export CMAKE_Fortran_FLAGS="$CMAKE_Fortran_FLAGS -mkl"
export FCFLAGS=-mkl
export LIBS="-mkl -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64"
export SCALAPACK_LDFLAGS="-lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64"
......@@ -25,24 +25,24 @@ if (NOT FLEUR_USE_HDF5)
endif()
#now try the find_package feature
if (NOT FLEUR_USE_HDF5)
find_package(HDF5)
if (NOT HDF5_LIBRARIES MATCHES "NOTFOUND")
set(TEST_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_LIBRARIES})
set(STORE_FLAGS ${CMAKE_Fortran_FLAGS})
set(CMAKE_Fortran_FLAGS "-I${HDF5_INCLUDE_LIBRARIES}" ${CMAKE_Fortran_FLAGS})
#if (NOT FLEUR_USE_HDF5)
# find_package(HDF5)
# if (NOT HDF5_LIBRARIES MATCHES "NOTFOUND")
# set(TEST_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_LIBRARIES})
# set(STORE_FLAGS ${CMAKE_Fortran_FLAGS})
# set(CMAKE_Fortran_FLAGS "-I${HDF5_INCLUDE_LIBRARIES}" ${CMAKE_Fortran_FLAGS})
try_compile(FLEUR_USE_HDF5 ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_HDF5.f90
LINK_LIBRARIES ${TEST_LIBRARIES}
)
if (${FLEUR_USE_HDF5})
set(FLEUR_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_LIBRARIES})
set(FLEUR_MPI_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_MPI_LIBRARIES})
else()
set(CMAKE_Fortran_FLAGS ${STORE_FLAGS})
endif()
endif()
endif()
#try_compile(FLEUR_USE_HDF5 ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_HDF5.f90
# LINK_LIBRARIES ${TEST_LIBRARIES}
# )
# if (${FLEUR_USE_HDF5})
# set(FLEUR_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_LIBRARIES})
# set(FLEUR_MPI_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${FLEUR_MPI_LIBRARIES})
# else()
# set(CMAKE_Fortran_FLAGS ${STORE_FLAGS})
# endif()
# endif()
#endif()
#check if HDF is parallel
if ( FLEUR_USE_HDF5)
......
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