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

RAMSES: Fix Compile for irene & JZ

parent 3a7e6db8
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,11 @@ compile(){
make clean
rm ramses3d
# FFLAGS
if [[ $HOSTNAME = *"irene"* ]]; then
sed -i s/"FFLAGS = -cpp -DNDIM=\$(NDIM) -DNPRE=\$(NPRE) -DSOLVER\$(SOLVER) -DNVAR=\$(NVAR) -DNCHEM=\$(NCHEM)"/"FFLAGS = -mavx2 -O3 -ipo -no-prec-div -cpp -DNDIM=\$(NDIM) -DNPRE=\$(NPRE) -DSOLVER\$(SOLVER) -DNVAR=\$(NVAR) -DNCHEM=\$(NCHEM)"/g $ramses_dir/ramses/bin/Makefile
else
sed -i s/"FFLAGS = -cpp -DNDIM=\$(NDIM) -DNPRE=\$(NPRE) -DSOLVER\$(SOLVER) -DNVAR=\$(NVAR) -DNCHEM=\$(NCHEM)"/"FFLAGS = -xHost -O3 -ip -cpp -DNDIM=\$(NDIM) -DNPRE=\$(NPRE) -DSOLVER\$(SOLVER) -DNVAR=\$(NVAR) -DNCHEM=\$(NCHEM)"/g $ramses_dir/ramses/bin/Makefile
fi
if [[ $HOSTNAME = *"jean-zay"* ]]; then
sed -i s/"F90 = mpif90"/"F90 = mpiifort"/g $ramses_dir/ramses/bin/Makefile
fi
......
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