mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2024-11-04 21:24:09 +01:00
c2f643ad8f
- Updated gitignore - Added python script to compute basic statistical observables from testruns - Added test bash script to automate test_h5: the cycles in the dataset are not continues and test_h5 crashes if a cycle number is not present in the dataset. - Added common threshold for all 3 standard SM algos.
51 lines
795 B
Bash
51 lines
795 B
Bash
#!/usr/bin/env bash
|
|
|
|
ENV=$1
|
|
|
|
## Set Sherman-Morrison root dir
|
|
PWD=$(pwd)
|
|
SRCDIR=$(dirname $BASH_SOURCE)
|
|
case $SRCDIR in
|
|
/*) SMROOT=$SRCDIR ;;
|
|
*)
|
|
if [[ $SRCDIR = . ]]
|
|
then
|
|
SMROOT=$PWD
|
|
else
|
|
SMROOT=$PWD/$SRCDIR
|
|
fi
|
|
;;
|
|
esac
|
|
export SMROOT
|
|
|
|
## Set environment for hdf5-tools and Makefile
|
|
case $ENV in
|
|
intel)
|
|
export HDF5_CXX=icpc
|
|
export HDF5_CXXLINKER=icpc
|
|
export ENV=INTEL
|
|
;;
|
|
llvm)
|
|
export HDF5_CXX=clang++
|
|
export HDF5_CXXLINKER=clang++
|
|
export ENV=LLVM
|
|
;;
|
|
gnu)
|
|
export HDF5_CXX=g++
|
|
export HDF5_CXXLINKER=g++
|
|
export ENV=GNU
|
|
;;
|
|
*)
|
|
echo "Unknown environment descriptor given."
|
|
echo "Usage: source smvars.sh {intel | llvm | gnu}"
|
|
return 1
|
|
;;
|
|
esac
|
|
|
|
## Export path, but only once
|
|
if [[ -z $SMVARS ]]
|
|
then
|
|
export PATH=$SMROOT/bin:$PATH
|
|
export SMVARS=true
|
|
fi
|