Commit 6d7d8df7 authored by S.Rost's avatar S.Rost

Merge branch 'develop' of iffgit.fz-juelich.de:fleur/fleur into develop

parents 19310529 aae72148
set(FLEUR_DEFINITIONS ${FLEUR_DEFINITIONS} "CPP_DOUBLE")
set(FLEUR_MPI_DEFINITIONS ${FLEUR_MPI_DEFINITIONS} "CPP_DOUBLE")
include("cmake/tests/test_linker.cmake")
include("cmake/tests/test_doxygen.cmake")
include("cmake/compilerflags.cmake")
include("cmake/tests/test_XML.cmake")
......
echo "Using special config for IFF-cluster"
echo "Wannier is switched off-manually"
#Set the compilers to mpiifort, mpiicc, mpiicpc
export FC=mpiifort
......@@ -7,8 +6,12 @@ export CC=mpiicc
export CXX=mpiicpc
FLEUR_LIBRARIES="-lxml2;-lmkl_scalapack_lp64;-lmkl_blacs_intelmpi_lp64;-mt_mpi"
echo "Wannier is switched off-manually"
CLI_USE_WANNIER=FALSE
echo "ChASE is switched off-manually"
CLI_USE_CHASE=FALSE
echo "Broken linker can be used"
CLI_WARN_ONLY=1
#Set environment variables usefull for external dependencies, e.g. ELPA
export CFLAGS=-mkl
......
......@@ -29,6 +29,7 @@ do
-elpa_openmp) CLI_ELPA_OPENMP=1;;
-cmake_opts) shift;CMAKE_OPTIONS=$1;;
-make) make_directly=1;;
-warn_only) CLI_WARN_ONLY=1;;
-d) debug=1;;
-*) error="Unkown argument";;
*) break;; # terminate while loop
......
......@@ -113,5 +113,10 @@ then
echo "set(CLI_ELPA_OPENMP 1)" >>config.cmake
fi
if [ "$CLI_WARN_ONLY" ]
then
echo "set(CLI_WARN_ONLY 1)" >>config.cmake
fi
#Try if the linker gives correct error messages
try_compile(THIS_SHOULD_FAIL ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_linker.f90
LINK_LIBRARIES ${FLEUR_LIBRARIES}
)
if ( NOT THIS_SHOULD_FAIL )
message("Linker seems OK")
else()
message(WARNING "Your linker is broken and reports no error even if dependencies are not available.\n" "You might want to complain with your system admin.")
if ( CLI_WARN_ONLY )
message(WARNING "You choose to ignore the warning, your final linking may fail.")
else()
message(FATAL_ERROR "\n\nYou can use the -warn_only option to ignore this error." "If you do so you might fail at final linking. :-)\n")
endif()
endif()
\ No newline at end of file
program will_fail
call not_available()
end
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