Commit 7fa9c91c authored by Vincent Chabannes's avatar Vincent Chabannes

up feelpp script

parent 4ca5a066
......@@ -3,6 +3,7 @@
source ../common.sh
LIB_VERSION=develop
#LIB_VERSION=v0.105.0 #v0.104.0
GCC_VERSION=6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7 #2.1.1 #1.10.7
......@@ -54,10 +55,12 @@ if [[ ! -d $SRC_DIR/feelpp ]]; then
mkdir -p $SRC_DIR
cd $SRC_DIR
git clone $GIT_URL
cd $SRC_DIR/feelpp
git checkout $LIB_VERSION
else
cd $SRC_DIR/feelpp && git pull
cd $SRC_DIR/feelpp && git checkout develop && git pull && git checkout $LIB_VERSION
fi
cd $SRC_DIR/feelpp && git submodule update --init --recursive
git submodule update --init --recursive
rm -rf $BUILD_LIB_DIR
mkdir $BUILD_LIB_DIR
......@@ -137,7 +140,13 @@ install_module_lib()
export LIB_VERSION
export INSTALL_LIB_DIR
export FEELPP_PROFILE
module purge
module load ${FEELPP_PROFILE}
export FEELPP_LOAD_MODULES=$(module list 2>&1 | perl -pe 's/ *\)* /\n/g' | sed '/^\s*$/d' | sed '/[0-9][)][ ]/!d' | sort -n | sed 's/[0-9]*[)][ ]//g' | sed 's/^[ \t]*//' | sed "s/$(echo ${FEELPP_PROFILE})//g" | sed '/^\s*$/d' | sed 's/^/module load /')
envtpl --keep-template -o $MODULE_LIB_PATH module_lib.tmpl
}
install_module_quickstart()
......
......@@ -19,5 +19,6 @@ prepend-path LIBRARY_PATH $prefix/lib
setenv FEELPP_DIR $prefix
if [module-info mode load] {
module load {{ FEELPP_PROFILE }}
# module load {{ FEELPP_PROFILE }}
{{ FEELPP_LOAD_MODULES }}
}
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