Skip to content
Snippets Groups Projects
Commit 7552b0f1 authored by jourdain's avatar jourdain
Browse files

RAMSES: Adapt download et compile script for Jean-Jean

parent 3a33a474
Branches 3-standardise-ramses
No related tags found
No related merge requests found
#!/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
......
#!/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"
......
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