Commit a44e1d52 authored by Daniel Wortmann's avatar Daniel Wortmann

Updated configure script for external-ELPA

parent 786172e7
......@@ -3,4 +3,10 @@ export FC=${FC:=mpiifort}
export CC=${CC:=mpiicc}
export CXX=${CXX:=mpiicpc}
#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"
elpa_version=2017.11.001
#elpa_version=2017.11.001
elpa_version=2018.05.001.rc1
if [ ! -r elpa-${elpa_version} ]
then
#Get the file with the code
......@@ -6,7 +7,7 @@ then
tar xzf elpa-${elpa_version}.tar.gz
cd elpa-${elpa_version}
#configure
./configure --disable-doxygen-doc --enable-shared=no --disable-mpi-module --enable-openmp --prefix=$PWD/INSTALL_DIR
./configure --enable-c-tests=no --disable-doxygen-doc --enable-shared=no --disable-mpi-module --disable-legacy --enable-openmp --prefix=$PWD/INSTALL_DIR
#Compile&test (This will take a while)
make
#Do make install
......@@ -14,5 +15,17 @@ then
cd ..
fi
#Store the installation location
if [[ -r $PWD/INSTALL_DIR/lib/libelpa.a ]] || [[ -r $PWD/INSTALL_DIR/lib/libelpa_openmp.a ]]
then
echo "libelpa.a found"
else
#Try to copy files manually if make install failed
mkdir $PWD/INSTALL_DIR
mkdir $PWD/INSTALL_DIR/lib/
cp elpa-${elpa_version}/.libs/* $PWD/INSTALL_DIR/lib/
mkdir $PWD/INSTALL_DIR/include
cp elpa-${elpa_version}/modules/* elpa-${elpa_version}/private_modules/* $PWD/INSTALL_DIR/include
fi
FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR"
FLEUR_INCLUDEDIR="$PWD/INSTALL_DIR/include $FLEUR_INCLUDEDIR"
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