2015-12-18 22:25:32 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
2015-12-18 22:53:27 +01:00
|
|
|
QMCCHEM_PATH=$PWD
|
|
|
|
mkdir -p "${QMCCHEM_PATH}"/bin
|
|
|
|
cd "${QMCCHEM_PATH}"/install
|
2015-12-18 22:25:32 +01:00
|
|
|
mkdir -p Downloads _build
|
2015-12-29 01:25:01 +01:00
|
|
|
|
|
|
|
cd "${QMCCHEM_PATH}"
|
2015-12-18 22:25:32 +01:00
|
|
|
|
2015-12-29 00:48:17 +01:00
|
|
|
if [[ ! -f make.config ]]
|
|
|
|
then
|
|
|
|
which ifort > /dev/null
|
|
|
|
if [[ $? ]]
|
|
|
|
then
|
|
|
|
cp make.config.ifort make.config
|
|
|
|
else
|
|
|
|
cp make.config.gfortran make.config
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "====================================================================="
|
|
|
|
echo "Configuration OK."
|
2015-12-29 01:25:01 +01:00
|
|
|
echo "Now, source the qmcchemrc file and build the program:"
|
2015-12-29 00:48:17 +01:00
|
|
|
echo ""
|
|
|
|
echo "source qmcchemrc"
|
2019-09-30 20:09:54 +02:00
|
|
|
echo "make"
|
2015-12-29 00:48:17 +01:00
|
|
|
echo ""
|
|
|
|
echo "====================================================================="
|
2015-12-18 22:25:32 +01:00
|
|
|
|