Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UEABS
ueabs
Commits
210bd3fc
Commit
210bd3fc
authored
Dec 17, 2018
by
Cedric Jourdain
Browse files
Add clean section
parent
e09269d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
specfem3d/compile.sh
View file @
210bd3fc
...
...
@@ -5,7 +5,7 @@ echo " - occigen"
echo
" - marenostrum "
echo
" - marconi-knl "
echo
" - daint-gpu "
echo
" - daint-c
pu
"
echo
" - daint-
m
c "
read
machine
source
./env/env_
${
machine
}
...
...
@@ -79,15 +79,22 @@ Install(){
time
-p
make
-j
12 all
>
& make.log &
}
Clean
(){
if
[
!
-z
"
$install_dir
"
]
&&
[
-d
$install_dir
]
;
then
echo
"==> Clean installation directory"
rm
-rf
$install_dir
else
echo
"Error with install_dir variable"
exit
fi
}
Deploy
(){
echo
"install_dir ="
$install_dir
if
[
$machine
=
"occigen"
]
||
[
$machine
=
"marenostrum"
]
||
[
$machine
=
"marconi-knl"
]
||
[
$machine
=
"daint-c
pu
"
]
||
[
$machine
=
"daint-gpu"
]
;
then
if
[
$machine
=
"occigen"
]
||
[
$machine
=
"marenostrum"
]
||
[
$machine
=
"marconi-knl"
]
||
[
$machine
=
"daint-
m
c"
]
||
[
$machine
=
"daint-gpu"
]
;
then
echo
"==> Install on
$machine
:"
if
[
!
-z
"
$install_dir
"
]
&&
[
-d
$install_dir
]
;
then
echo
"==> Clean installation directory"
rm
-rf
$install_dir
fi
mkdir
-p
$install_dir
#Clean
mkdir
-p
$install_dir
export
ueabs_dir
=
`
pwd
`
Untar
Install
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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