Skip to content

Commit

Permalink
Rename arch file and make it sourceable
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Feb 28, 2022
1 parent f01ae06 commit 887bb64
Showing 1 changed file with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 887bb64

Please sign in to comment.