Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
atlas
please-install
Commits
7fa9c91c
Commit
7fa9c91c
authored
Sep 17, 2018
by
Vincent Chabannes
Browse files
up feelpp script
parent
4ca5a066
Changes
2
Hide whitespace changes
Inline
Side-by-side
feelpp/install.sh
View file @
7fa9c91c
...
...
@@ -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
()
...
...
feelpp/module_lib.tmpl
View file @
7fa9c91c
...
...
@@ -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 }}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment