Rename arch file and make it sourceable

This commit is contained in:
Matthias Krack 2022-02-25 19:16:44 +01:00
parent f01ae0686f
commit 887bb64ae0

View file

@ -1,9 +1,23 @@
# Tested with: Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.274 Build 20180823
# Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.1.217 Build 20200306
# Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.3.304 Build 20200925
# Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112
# Intel MPI, MKL
# Author: Matthias Krack (matthias.krack@psi.ch, PSI, September 2021)
#!/bin/bash
#
# CP2K (Intel/MKL x86_64) minimal arch file for Linux clusters
#
# Tested with: Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.5.0
# Usage: Source this arch file after the module for Intel/MKL has been loaded if needed.
#
# Author: Matthias Krack (25.02.2022)
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
echo "ERROR: Script ${0##*/} must be sourced"; \
echo "Usage: source ${0##*/}"; \
exit 1; \
fi; \
this_file=${BASH_SOURCE##*/}; \
make -j ARCH=${this_file%%.*} VERSION=${this_file##*.} realclean; \
make -j ARCH=${this_file%%.*} VERSION=${this_file##*.}; \
return
CC = mpiicc
FC = mpiifort