- Timestamp:
- Nov 16, 2017, 12:06:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3064 r3076 43 43 function myget { #1st and only argument should be file name 44 44 # Path on local computer where to look for the datafile 45 LMDZ_HOME="/u/lmdz/WWW/Distrib" 46 if [ -f $LMDZ_HOME/$1 ] ; then 47 \cp -f -p $LMDZ_HOME/$1 . 45 if [ -f /u/lmdz/WWW/LMDZ/pub/$1 ] ; then 46 \cp -f -p /u/lmdz/WWW/LMDZ/pub/$1 . 47 elif [ -f ~/LMDZ/pub/$1 ] ; then 48 \cp -f -p ~/LMDZ/pub/$1 . 48 49 else 49 wget http://www.lmd.jussieu.fr/~lmdz/Distrib/$1 50 wget http://www.lmd.jussieu.fr/~lmdz/pub/$1 51 #dir=~/LMDZ/pub/`dirname $1` ; mkdir -p $dir ; cp -r `basename $1` $dir 50 52 fi 51 53 } … … 62 64 ######################################################################### 63 65 svn="" 64 version=t esting66 version=trunk 65 67 getlmdzor=1 66 68 netcdf=1 # 1 for automatic installation … … 198 200 *) compilo="gfortran" ; 199 201 if [ $parallel = none -o -f /usr/bin/mpif90 ] ; then 200 path_mpi=`which mpif90 | sed -e 's:/mpif90::'` ;202 path_mpi=`which mpif90 | sed -e s:/mpif90::` ; 201 203 if [ -d /usr/lib64/openmpi ] ; then 202 204 root_mpi="/usr/lib64/openmpi" … … 280 282 BASE_LD="$OPT_GPROF" 281 283 OPTPREC="$OPT_GPROF" 284 ARFLAGS="rs" ; if [ -f /etc/issue ] ; then if [ "`grep -i ubuntu /etc/issue`" != "" ] ; then if [ "`grep -i ubuntu /etc/issue | awk ' { print $2 } ' | cut -d. -f1`" -ge 16 ] ; then ARFLAGS="rU" ; fi ; fi ; fi 285 286 282 287 283 288 if [ "$compilo" = "$gfortran" ] ; then … … 419 424 echo '##########################################################' 420 425 cd $MODEL 421 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/modipsl.$version.tar.gz 422 myget modipsl.$version.tar.gz 426 myget src/modipsl.$version.tar.gz 423 427 echo install.sh wget_OK `date` 424 428 gunzip modipsl.$version.tar.gz … … 438 442 # keep it simple 439 443 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/netcdf-4.0.1.tar.gz 440 myget netcdf-4.0.1.tar.gz444 myget import/netcdf-4.0.1.tar.gz 441 445 gunzip netcdf-4.0.1.tar.gz 442 446 tar xvf netcdf-4.0.1.tar … … 455 459 # download and compile hdf5 and netcdf, etc. using the install_netcdf4_hdf5.bash script 456 460 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/install_netcdf4_hdf5.bash 457 myget i nstall_netcdf4_hdf5.bash461 myget import/install_netcdf4_hdf5.bash 458 462 chmod u=rwx install_netcdf4_hdf5.bash 459 463 if [ "$compilo" = "gfortran" ] ; then … … 595 599 cd $MODEL/modipsl/modeles 596 600 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/install_xios.bash 597 myget i nstall_xios.bash601 myget import/install_xios.bash 598 602 chmod u=rwx install_xios.bash 599 603 ./install_xios.bash -prefix $MODEL/modipsl/modeles \ … … 622 626 -e s:"%BASE_FFLAGS .*.$":"%BASE_FFLAGS $OPTPREC":1 \ 623 627 -e s:"%BASE_LD .*.$":"%BASE_LD $BASE_LD":1 \ 628 -e s:"%ARFLAGS .*.$":"%ARFLAGS $ARFLAGS":1 \ 624 629 arch-gfortran.fcm > arch-local.fcm 625 630 echo "NETCDF_LIBDIR=\"-L${ncdfdir}/lib -lnetcdff -lnetcdf\"" > arch-local.path … … 700 705 -e s:"%FPP_DEF .*.$":"%FPP_DEF $FPP_DEF":1 \ 701 706 -e s:"%BASE_LD .*.$":"%BASE_LD $BASE_LD":1 \ 707 -e s:"%ARFLAGS .*.$":"%ARFLAGS $ARFLAGS":1 \ 702 708 arch-linux-32bit.fcm > arch-local.fcm 703 709 … … 790 796 -e s:"%MPI_FFLAG.*.$":"%MPI_FFLAGS $MPI_FLAGS":1 \ 791 797 -e s:"%OMP_FFLAG.*.$":"%OMP_FFLAGS $OMP_FLAGS":1 \ 798 -e s:"%ARFLAGS.*.$":"%ARFLAGS $ARFLAGS":1 \ 792 799 -e s@"%BASE_LD.*.$"@"%BASE_LD -Wl,-rpath=${root_mpi}/lib:${ncdfdir}/lib"@1 \ 793 800 -e s:"%MPI_LD.*.$":"%MPI_LD $MPI_LD":1 \ … … 851 858 echo install.sh avant_chargement_bench `date` 852 859 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/$bench.tar.gz 853 myget $bench.tar.gz860 myget 3DBenchs/$bench.tar.gz 854 861 echo install.sh after bench download `date` 855 862 tar xvf $bench.tar.gz … … 904 911 fi 905 912 echo EXECUTION DU BENCH 913 set +e 906 914 date ; ./bench.sh > out.bench 2>&1 ; date 915 set -e 907 916 tail listing 908 917 … … 935 944 cd $MODEL 936 945 #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/1D.tar.gz 937 myget 1D .tar.gz946 myget 1D/1D.tar.gz 938 947 tar xvf 1D.tar.gz 939 948 cd 1D
Note: See TracChangeset
for help on using the changeset viewer.