Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CHiPS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
external
CHiPS
Commits
7552b0f1
Commit
7552b0f1
authored
5 years ago
by
jourdain
Browse files
Options
Downloads
Patches
Plain Diff
RAMSES: Adapt download et compile script for Jean-Jean
parent
3a33a474
Branches
3-standardise-ramses
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RAMSES/compile.sh
+21
-1
21 additions, 1 deletion
RAMSES/compile.sh
RAMSES/download.sh
+3
-2
3 additions, 2 deletions
RAMSES/download.sh
with
24 additions
and
3 deletions
RAMSES/compile.sh
+
21
−
1
View file @
7552b0f1
#!/bin/bash
if
[[
$HOSTNAME
=
*
"occigen"
*
]]
;
then
source
machines/occigen-bdw/env
elif
[[
$HOSTNAME
=
*
"jean-zay"
*
]]
;
then
echo
"Compilation start on jean-zay"
source
machines/jean-zay-cpu/env
elif
[[
$HOSTNAME
=
*
"irene"
*
]]
;
then
source
machines/irene-amd/env
else
echo
"Hostname not recognized: abort"
exit
1
fi
source
machines/occigen-bdw/env
echo
"************************************************************"
echo
"* Compile "
echo
"************************************************************"
compile
(){
cd
$ramses_dir
/ramses/bin
make clean
rm
ramses3d
# FFLAGS
sed
-i
s/
"-cpp -DNDIM=
\$
(NDIM) -DNPRE=
\$
(NPRE) -DSOLVER
\$
(SOLVER) -DNVAR=
\$
(NVAR) -DNCHEM=
\$
(NCHEM)"
/
"-xHost -O3 -ip -cpp -DNDIM=
\$
(NDIM) -DNPRE=
\$
(NPRE) -DSOLVER
\$
(SOLVER) -DNVAR=
\$
(NVAR) -DNCHEM=
\$
(NCHEM)"
/g
$ramses_dir
/ramses/bin/Makefile
if
[[
$HOSTNAME
=
*
"jean-zay"
*
]]
;
then
sed
-i
s/
"F90 = mpif90"
/
"F90 = mpiifort"
/g
$ramses_dir
/ramses/bin/Makefile
fi
pwd
make
>
& make.log
if
[
-z
"ramses3d"
]
;
then
echo
"ramses3d binary not found/compiled"
exit
1
else
echo
"Compilation of ramses3d succeeded"
fi
}
compile
...
...
This diff is collapsed.
Click to expand it.
RAMSES/download.sh
+
3
−
2
View file @
7552b0f1
#!/bin/bash
source
machines/occigen-bdw/env
git_download
(){
git clone https://bitbucket.org/rteyssie/ramses
...
...
@@ -11,11 +10,13 @@ git_download(){
tar_download
(){
cd
$ramses_dir
if
[[
$HOSTNAME
=
*
"occigen"
*
]]
;
then
#cp /store/CINES/dci/SHARED/abs/ramses/testcase_small.tar.gz $bench_dir/.
source
machines/occigen-bdw/env
tar
zxvf /store/CINES/dci/SHARED/abs/ramses/ramses.tar.gz
-C
$ramses_dir
/.
elif
[[
$HOSTNAME
=
*
"jean-zay"
*
]]
;
then
source
machines/jean-zay-cpu/env
tar
zxvf
$SCRATCH
/abs/ramses/ramses.tar.gz
-C
$ramses_dir
/.
elif
[[
$HOSTNAME
=
*
"irene"
*
]]
;
then
source
machines/irene-amd/env
tar
zxvf
$CCCSCRATCHDIR
/abs/ramses/ramses.tar.gz
-C
$ramses_dir
/.
else
echo
"Hostname not recognized: abort"
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment