- Timestamp:
- Jan 31, 2023, 12:08:44 AM (2 years ago)
- Location:
- BOL/script_install
- Files:
-
- 5 added
- 3 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r4398 r4405 49 49 # Path on local computer where to look for the datafile 50 50 if [ -f /u/lmdz/WWW/LMDZ/pub/$1 ] ; then 51 51 \cp -f -p /u/lmdz/WWW/LMDZ/pub/$1 . 52 52 elif [ -f ~/LMDZ/pub/$1 ] ; then 53 53 \cp -f -p ~/LMDZ/pub/$1 . 54 54 else 55 56 57 58 59 60 55 wget --no-check-certificate -nv http://lmdz.lmd.jussieu.fr/pub/$1 56 save_pub_locally=0 57 if [ $save_pub_locally = 1 ] ; then # saving wget files on ~/LMDZ/pub 58 dir=~/LMDZ/pub/`dirname $1` ; mkdir -p $dir 59 cp -r `basename $1` $dir 60 fi 61 61 fi 62 62 } … … 141 141 do 142 142 case $1 in 143 143 "-h") cat <<........fin 144 144 $0 [ -v version ] [ -r svn_release ] 145 145 [ -parallel PARA ] [ -d GRID_RESOLUTION ] [ -bench 0/1 ] … … 165 165 166 166 -netcdf 0, 1 or PATH 167 168 169 167 0: do not download NetCDF, look for it in standard locations 168 1: download and compile NetCDF 169 PATH: full path to an existing installed NetCDF library 170 170 171 171 -xios also download and compile the XIOS library … … 194 194 195 195 ........fin 196 197 198 199 196 exit ;; 197 "-v") version=$2 ; shift ; shift ;; 198 "-r") svn=$2 ; shift ; shift ;; 199 "-compiler") compiler=$2 200 200 case $compiler in 201 202 203 204 205 201 "gfortran"|"ifort"|"pgf90") compiler=$2 ; shift 202 shift ;; 203 *) echo "Only gfortran , ifort or pgf90 for the " \ 204 "compiler option" 205 exit 206 206 esac ;; 207 208 209 210 207 "-d") grid_resolution=$2 ; shift ; shift ;; 208 "-gprof") OPT_GPROF="-pg" ; shift ;; 209 "-cosp") cosp=$2 210 case $cosp in 211 211 "none"|"v1"|"v2") cosp=$2 ; shift ; shift ;; 212 212 *) echo Only none v1 v2 for cosp option ; exit 213 214 215 216 217 218 219 220 221 222 223 224 225 213 esac ;; 214 "-nofcm") compile_with_fcm=0 ; echo This option will be reactivated soon '(promesse du 8dec2022)' ; exit 1 ; shift ;; 215 "-SCM") SCM=1 ; shift ;; 216 "-opt_makelmdz") OPT_MAKELMDZ="$2" ; shift ; shift ;; 217 "-rrtm") rrtm="$2" 218 if [ "$2" = "false" ] ; then 219 rad="oldrad" 220 else 221 rad="rrtm" 222 fi 223 shift ; shift ;; 224 "-rad") rad=$2 225 case $rad in 226 226 "oldrad"|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;; 227 227 *) echo Only oldrad rrtm ecrad for rad option ; exit 228 229 228 esac ;; 229 "-parallel") parallel=$2 230 230 case $parallel in 231 232 233 234 235 231 "none"|"mpi"|"omp"|"mpi_omp") parallel=$2 ; shift 232 shift ;; 233 *) echo Only none mpi omp mpi_omp for the parallel \ 234 option 235 exit 236 236 esac ;; 237 238 239 240 237 "-bench") bench=$2 ; shift ; shift ;; 238 "-debug") optim=-debug ; shift ;; 239 "-name") MODEL=$2 ; shift ; shift ;; 240 "-netcdf") case $2 in 241 241 0|1) netcdf=$2 ;; 242 242 *) netcdf=`ls -d $2` ; if [ $? != 0 ] ; then echo No directory $2 ; exit 1 ; fi 243 243 esac 244 244 shift ; shift ;; 245 246 247 248 249 245 "-physiq") physiq=$2 ; shift ; shift ;; 246 "-xios") with_xios="y" ; shift ;; 247 "-env_file") env_file=$2 ; shift ; shift ;; 248 "-veget") veget=$2 ; shift ; shift ;; 249 *) ./install_lmdz.sh -h ; exit 250 250 esac 251 251 done … … 273 273 re='^[0-9]+$' 274 274 if ! [[ $veget =~ $re ]] ; then 275 276 275 echo 'Valeur de l option veget non valable' 276 exit 277 277 fi 278 278 fi … … 331 331 332 332 cicla|camel) compiler="gfortran" ; 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 333 module purge 334 module load gnu/10.2.0 335 module load openmpi/4.0.5 336 module load hdf5/1.10.7-mpi 337 module load netcdf-c/4.7.4-mpi 338 module load netcdf-fortran/4.5.3-mpi 339 netcdf=/net/nfs/tools/PrgEnv/linux-scientific6-x86_64/gcc-10.2.0/netcdf-fortran-4.5.3-k3drgfqok3lip62hnm3tsyof4cjen5sk 340 module load svn/1.14.0 341 342 if [ $parallel != none ] ; then 343 root_mpi=/net/nfs/tools/meso-sl6/openmpi/4.0.5-gcc-10.2.0 344 path_mpi=$root_mpi/bin ; 345 par_comp=${path_mpi}/mpif90 ; 346 mpirun=${path_mpi}/mpirun ; 347 fi ; 348 arch=local ; 349 make=make ; 350 o_ins_make="-t g95" ;; 351 351 352 352 *) if [ $parallel = none -o -f /usr/bin/mpif90 ] ; then … … 358 358 fi 359 359 else 360 361 360 echo "Cannot find mpif90" ; 361 if [ $parallel = none ] ; then exit ; fi ; 362 362 fi ; 363 363 if [ $parallel != none ] ; then 364 365 366 364 root_mpi=$(which mpif90 | sed -e s:/bin/mpif90::) 365 path_mpi=$(which mpif90 | sed -e s:/mpif90::) 366 export LD_LIBRARY_PATH=${root_mpi}/lib:$LD_LIBRARY_PATH 367 367 fi 368 368 par_comp=${path_mpi}/mpif90 ; … … 378 378 MPI_LD="-L${root_mpi}/lib -lmpi" 379 379 if [ "$compiler" = "gfortran" ] ; then 380 381 382 383 384 385 380 # MPI_FLAGS are the flags needed for compilation with MPI 381 MPI_FLAGS="-fcray-pointer" 382 # OMP_FLAGS are the flags needed for compilation with OpenMP 383 OMP_FLAGS="-fopenmp -fcray-pointer" 384 # OMP_LD are the flags needed for linking with OpenMP 385 OMP_LD="-fopenmp" 386 386 elif [ "$compiler" = "ifort" ] ; then 387 388 389 387 MPI_FLAGS="" 388 OMP_FLAGS="-openmp" 389 OMP_LD="-openmp" 390 390 else # pgf90 391 392 393 391 MPI_FLAGS="" 392 OMP_FLAGS="-mp" 393 OMP_LD="-mp" 394 394 fi 395 395 fi … … 408 408 head -1 | awk ' { print $NF } ' | awk -F. ' { print $1 * 10 + $2 } '` 409 409 if [ $gfortranv -le 43 ] ; then 410 411 412 413 414 410 echo ERROR : Your gfortran compiler is too old 411 echo 'Please choose a new one (ifort) and change the line' 412 echo compiler=xxx 413 echo in the install_lmdz.sh script and rerun it 414 if [ `which gfortran44 | wc -w` -ne 0 ] ; then 415 415 gfortran=gfortran44 416 416 else 417 417 echo gfotran trop vieux ; exit 418 418 fi 419 419 fi 420 420 compiler=$gfortran … … 475 475 fmod='I ' 476 476 if [ $real = r8 ] ; then 477 477 OPTPREC="$OPTPREC -fdefault-real-8 -DNC_DOUBLE -fcray-pointer" 478 478 fi 479 479 export F90FLAGS=" -ffree-form $OPTIMNC" … … 553 553 use_shell="bash" # default 554 554 if [ "`which bash`" = "" ] ; then 555 556 557 558 559 560 555 echo "no bash ; we will use ksh" 556 use_shell="ksh" 557 if [ "`which ksh`" = "" ] ; then 558 echo "bash (or ksh) needed!! Install it!" 559 exit 560 fi 561 561 fi 562 562 563 563 for logiciel in wget tar gzip make $compiler gcc cmake m4 c++ ; do 564 565 566 567 564 if [ "`which $logiciel`" = "" ] ; then 565 echo You must first install $logiciel on your system 566 exit 567 fi 568 568 done 569 569 570 570 if [ $pclinux = 1 ] ; then 571 572 571 cd $MODEL 572 cat <<eod > tt.f90 573 573 print*,'coucou' 574 574 end 575 575 eod 576 577 578 579 580 576 $compiler tt.f90 -o a.out 577 ./a.out >| tt 578 if [ "`cat tt | sed -e 's/ //g' `" != "coucou" ] ; then 579 echo problem installing with compiler $compiler ; exit ; fi 580 \rm tt a.out tt.f90 581 581 fi 582 582 fi … … 600 600 ########################################################################### 601 601 if [ $netcdf = 1 ] ; then 602 602 ########################################################################### 603 603 cd $MODEL 604 604 netcdflog=`pwd`/netcdf.log 605 echo ' ##########################################################'605 echo '----------------------------------------------------------' 606 606 echo Compiling the Netcdf library 607 echo ' ##########################################################'607 echo '----------------------------------------------------------' 608 608 echo log file : $netcdflog 609 if [[ "$with_xios" = "n" && ! -d $MODEL/netcdf4_hdf5_seq ]] ; then 610 myget import/install_netcdf4_hdf5_seq.bash >> $netcdflog 2>&1 611 chmod +x install_netcdf4_hdf5_seq.bash 612 613 if [ "$compiler" = "gfortran" ] 614 then 615 ./install_netcdf4_hdf5_seq.bash -prefix $MODEL/netcdf4_hdf5_seq \ 616 -compiler gnu >> $netcdflog 2>&1 617 elif [ "$compiler" = "ifort" ] 618 then 619 ./install_netcdf4_hdf5_seq.bash -prefix $MODEL/netcdf4_hdf5_seq \ 620 -compiler intel >> $netcdflog 2>&1 621 else 622 echo "unexpected compiler $compiler" ; exit 623 fi 624 625 # LF rajout d'une verrue, pour une raison non encore expliquee, 626 # la librairie est parfois rangée dans lib64 et non dans lib 627 # par certains compilateurs 628 if [ ! -e lib -a -d lib64 ] ; then ln -s lib64 lib; fi 629 elif [[ "$with_xios" = "y" && ! -d $MODEL/netcdf4_hdf5 ]] 630 then 631 # download and compile hdf5 and netcdf, etc. using the 632 # install_netcdf4_hdf5.bash script 633 myget import/install_netcdf4_hdf5.bash >> $netcdflog 2>&1 634 chmod u=rwx install_netcdf4_hdf5.bash 635 if [ "$compiler" = "gfortran" ] ; then 636 ./install_netcdf4_hdf5.bash -prefix $MODEL/netcdf4_hdf5 -CC gcc \ 637 -FC gfortran -CXX g++ -MPI $root_mpi >> $netcdflog 2>&1 638 elif [ "$compiler" = "ifort" ] ; then 639 ./install_netcdf4_hdf5.bash -prefix $MODEL/netcdf4_hdf5 -CC icc \ 640 -FC ifort -CXX icpc -MPI $root_mpi >> $netcdflog 2>&1 641 elif [ "$compiler" = "pgf90" ] ; then 642 ./install_netcdf4_hdf5.bash -prefix $MODEL/netcdf4_hdf5 -CC pgcc \ 643 -FC pgf90 -CXX pgCC -MPI $root_mpi >> $netcdflog 2>&1 644 else 645 echo "unexpected compiler $compiler" ; exit 646 fi 647 fi # of if [ "$with_xios" = "n" ] 609 610 case $compiler in 611 gfortran) opt1="-compiler gnu" ; opt2="-CC gcc -FC gfortran -CXX g++" ;; 612 ifort) opt1="-compiler intel" ; opt2="-CC icc -FC ifort -CXX icpc" ;; 613 pgf90) opt1="-compiler pgf90" ; opt2="-CC pgcc -FC pgf90 -CXX pgCC" ;; 614 *) echo "unexpected compiler $compiler" for netcdf ; exit 1 615 esac 616 617 case $with_xios in 618 n) script_install_netcdf=install_netcdf4_hdf5_seq.bash 619 ncdfdir=$MODEL/netcdf4_hdf5_seq 620 opt_=$opt1 ;; 621 y) script_install_netcdf=install_netcdf4_hdf5.bash 622 ncdfdir=$MODEL/netcdf4_hdf5 623 opt_="$opt2 -MPI $root_mpi" ;; 624 *) echo with_xios=$with_xios, should be n or y ; exit 1 625 esac 626 627 if [[ ! -d $ncdfdir ]] ; then 628 myget import/$script_install_netcdf >> $netcdflog 2>&1 629 chmod u=rwx $script_install_netcdf 630 ./$script_install_netcdf -prefix $ncdfdir $opt_ >> $netcdflog 2>&1 631 fi 632 633 #---------------------------------------------------------------------------- 634 # LF rajout d'une verrue, pour une raison non encore expliquee, 635 # la librairie est parfois rangée dans lib64 et non dans lib 636 # par certains compilateurs 637 if [ ! -e lib -a -d lib64 ] ; then ln -s lib64 lib; fi 638 #---------------------------------------------------------------------------- 639 648 640 echo install_lmdz.sh netcdf_OK `date` 649 fi # of if [ $netcdf = 1 ] 650 651 # ncdfdir contains the directory where netcdf is installed 652 if [ $netcdf = 1 ] ; then 653 if [ "$with_xios" = "y" ] ; then 654 ncdfdir=$MODEL/netcdf4_hdf5 655 else 656 ncdfdir=$MODEL/netcdf4_hdf5_seq 657 fi 658 elif [ $netcdf = 0 ] 659 then 641 642 elif [ $netcdf = 0 ] ; then 660 643 ncdfdir=/usr 661 644 else … … 669 652 EOF 670 653 671 $compiler -I$ncdfdir/include test_netcdf90.f90 -L$ncdfdir/lib -l 672 654 $compiler -I$ncdfdir/include test_netcdf90.f90 -L$ncdfdir/lib -lnetcdff \ 655 -lnetcdf -Wl,-rpath=$ncdfdir/lib && ./a.out 673 656 674 657 if (($? == 0)) … … 680 663 echo "- check that you have NetCDF-Fortran installed in your system" 681 664 echo "- or specify an installation directory with option -netcdf of" \ 682 665 "install_lmdz.sh" 683 666 echo "- or download and compile NetCDF-Fortran with option -netcdf 1 of" \ 684 667 "install_lmdz.sh" 685 668 exit 1 686 669 fi … … 690 673 then 691 674 if [ $ioipsl = 1 ] ; then 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 675 #===================================================================== 676 echo OK ioipsl=$ioipsl 677 echo '##########################################################' 678 echo 'Installing MODIPSL, the installation package manager for the ' 679 echo 'IPSL models and tools' 680 echo '##########################################################' 681 echo `date` 682 683 cd $MODEL/modipsl 684 \rm -rf lib/* 685 cd util 686 cp AA_make.gdef AA_make.orig 687 F_C="$compiler -c " 688 if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] 689 then 690 F_C="$compiler -c -cpp " 691 fi 692 if [ "$compiler" = "pgf90" ] ; then F_C="$compiler -c -Mpreprocess" ; fi 693 sed -e 's/^\#.*.g95.*.\#.*.$/\#/' AA_make.gdef > tmp 694 sed -e "s:F_L = g95:F_L = $compiler:" \ 695 -e "s:F_C = g95 -c -cpp:F_C = $F_C": \ 696 -e 's/g95.*.w_w.*.(F_D)/g95 w_w = '"$OPTIMGCM"'/' \ 697 -e 's:g95.*.NCDF_INC.*.$:g95 NCDF_INC= '"$ncdfdir"'/include:' \ 698 -e 's:g95.*.NCDF_LIB.*.$:g95 NCDF_LIB= -L'"$ncdfdir"'/lib -lnetcdff -lnetcdf:' \ 699 -e 's:g95 L_O =:g95 L_O = -Wl,-rpath='"$ncdfdir"'/lib:' \ 700 -e "s:-fmod=:-$fmod:" -e 's/-fno-second-underscore//' \ 701 -e 's:#-Q- g95 M_K = gmake:#-Q- g95 M_K = make:' \ 702 tmp >| AA_make.gdef 703 704 if [ $pcmac == 1 ] 705 then 706 cp AA_make.gdef tmp 707 sed -e 's/rpath=/rpath,/g' tmp > AA_make.gdef 708 fi 709 710 711 # We use lines for g95 even for the other compilers to run ins_make 712 if [ "$use_shell" = "ksh" ] ; then 713 ./ins_make $o_ins_make 714 else # bash 715 sed -e s:/bin/ksh:/bin/bash:g ins_make > ins_make.bash 716 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then 717 # Bidouille pour compiler sur ada des vieux modipsl.tar 718 echo 'Warning jean-zay not in AA_make.gdef' 719 echo 'Think about updating' 720 exit 1 721 fi 722 723 chmod u=rwx ins_make.bash 724 ./ins_make.bash $o_ins_make 725 fi # of if [ "$use_shell" = "ksh" ] 726 727 echo install_lmdz.sh MODIPSL_OK `date` 728 729 cd $MODEL/modipsl/modeles/IOIPSL/src 730 ioipsllog=`pwd`/ioipsl.log 731 echo '##########################################################' 732 echo 'Compiling IOIPSL, the interface library with Netcdf' 733 echo '##########################################################' 734 echo `date` 735 echo log file : $ioipsllog 736 737 if [ "$use_shell" = "bash" ] ; then 738 cp Makefile Makefile.ksh 739 sed -e s:/bin/ksh:/bin/bash:g Makefile.ksh > Makefile 740 fi 741 # if [ "$pclinux" = 1 ] ; then 742 # Build IOIPSL modules and library 743 $make clean 744 $make > $ioipsllog 2>&1 745 if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then 746 # copy module files to lib 747 cp -f *.mod ../../../lib 748 fi 749 # Build IOIPSL tools (ie: "rebuild", if present) 750 if [ -f $MODEL/modipsl/modeles/IOIPSL/tools/rebuild ] ; then 751 cd $MODEL/modipsl/modeles/IOIPSL/tools 752 # adapt Makefile & rebuild script if in bash 753 if [ "$use_shell" = "bash" ] ; then 754 cp Makefile Makefile.ksh 755 sed -e s:/bin/ksh:/bin/bash:g Makefile.ksh > Makefile 756 cp rebuild rebuild.ksh 757 sed -e 's:/bin/ksh:/bin/bash:g' \ 758 -e 's:print -u2:echo:g' \ 759 -e 's:print:echo:g' rebuild.ksh > rebuild 760 fi 761 $make clean 762 $make > $ioipsllog 2>&1 763 fi 764 # fi # of if [ "$pclinux" = 1 ] 782 765 783 766 else # of if [ $ioipsl = 1 ] 784 785 786 767 if [ ${hostname:0:5} = jean- ] ; then 768 cd $MODEL/modipsl 769 cd util 787 770 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then 788 789 790 771 echo 'Warning jean-zay not in AA_make.gdef' 772 echo 'Think about updating' 773 exit 1 791 774 fi 792 775 ./ins_make $o_ins_make 793 776 # Compile IOIPSL on jean-zay 794 777 cd $MODEL/modipsl/modeles/IOIPSL/src 795 778 gmake > ioipsl.log … … 797 780 gmake > ioipsl.log 798 781 799 800 782 fi 783 echo install_lmdz.sh ioipsl_OK `date` 801 784 fi # of if [ $ioipsl = 1 ] 802 785 fi … … 816 799 chmod u=rwx install_xios.bash 817 800 if [ ${hostname:0:5} = jean- ] ; then 818 819 820 821 822 823 824 825 826 801 svn co http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/branchs/xios-2.5 \ 802 XIOS 803 cd XIOS/arch 804 svn update 805 cd .. 806 echo "Compiling XIOS, start" `date` \ 807 "(it takes about 20 min on Jean-Zay)" 808 echo "log file: $xioslog" 809 ./make_xios --prod --arch $arch --job 4 > xios.log 2>&1 827 810 else 828 829 830 811 ./install_xios.bash -prefix $MODEL/modipsl/modeles \ 812 -netcdf ${ncdfdir} -hdf5 ${ncdfdir} \ 813 -MPI $root_mpi -arch $arch > xios.log 2>&1 831 814 fi # of case Jean-Zay 832 815 if [ -f XIOS/lib/libxios.a ] ; then 833 834 816 echo "XIOS library successfully generated" 817 echo install_lmdz.sh XIOS_OK `date` 835 818 fi 836 819 fi … … 842 825 set +e ; svn upgrade ; set -e 843 826 if [ "$veget" = "CMIP6" ] ; then 844 845 827 veget_version=orchidee2.0 828 orchidee_rev=6592 846 829 else # specific orchidee revision newer than CMIP6, on 2_1 or 2_2 branches 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 830 veget_version=orchidee2.1 831 orchidee_rev=$veget 832 if [ $veget -lt 4465 ] ; then 833 echo 'Stopping, ORCHIDEE version too old, script needs work on ' \ 834 'the CPP flags to pass to makelmdz' 835 exit 1 836 fi 837 set +e 838 # which branch is my version on? 839 orcbranch=`svn log -v -q svn://forge.ipsl.jussieu.fr/orchidee/ -r $veget |grep ORCHIDEE |head -1| sed -e 's:ORCHIDEE/.*$:ORCHIDEE:' | awk '{print $2}'` 840 # switch to that branch 841 echo IF YOU INSTALL ORCHIDEE THE VERY FIRST TIME, ASK for PASSWORD at \ 842 orchidee-help@listes.ipsl.fr 843 svn switch -r $veget --accept theirs-full \ 844 svn://forge.ipsl.jussieu.fr/orchidee/$orcbranch 845 svn log -r $veget | grep $veget 846 if [ $? -gt 0 ] ; then 864 847 echo 'Cannot update ORCHIDEE as not on the right branch for ' \ 865 848 'ORCHIDEE' 866 849 exit 867 868 869 850 fi 851 set -e 852 set +e ; svn update -r $veget ; set -e 870 853 fi 871 854 # Correctif suite debug Jean-Zay 872 855 sed -i -e 's/9010 FORMAT(A52,F17.14)/9010 FORMAT(A52,F20.14)/' \ 873 856 src_stomate/stomate.f90 874 857 opt_orc="-prod" ; if [ "$optim" = "-debug" ] ; then opt_orc="-debug" ; fi 875 858 … … 884 867 xios_orchid="-noxios" 885 868 if [ "$with_xios" = "y" ] ; then 886 869 xios_orchid="-xios" 887 870 fi 888 871 if [ -d tools ] ; then 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 872 ################################################################### 873 # Pour les experts qui voudraient changer de version d'orchidee. 874 # Attention : necessite d'avoir le password pour orchidee 875 876 # Correctif suite debug Jean-Zay 877 if [ -f src_global/time.f90 ] ; then 878 sed -i -e 's/CALL tlen2itau/\!CALL tlen2itau/' src_global/time.f90 879 fi 880 ################################################################### 881 if [ "$veget_version" == "false" ] ; then 882 veget_version=orchidee2.0 883 fi 884 cd arch 885 sed -e s:"%COMPILER .*.$":"%COMPILER $compiler":1 \ 886 -e s:"%LINK .*.$":"%LINK $compiler":1 \ 887 -e s:"%FPP_FLAGS .*.$":"%FPP_FLAGS $fpp_flags":1 \ 888 -e s:"%PROD_FFLAGS .*.$":"%PROD_FFLAGS $OPTIM":1 \ 889 -e s:"%DEV_FFLAGS .*.$":"%DEV_FFLAGS $OPTDEV":1 \ 890 -e s:"%DEBUG_FFLAGS .*.$":"%DEBUG_FFLAGS $OPTDEB":1 \ 891 -e s:"%BASE_FFLAGS .*.$":"%BASE_FFLAGS $OPTPREC":1 \ 892 -e s:"%BASE_LD .*.$":"%BASE_LD $BASE_LD":1 \ 893 -e s:"%ARFLAGS .*.$":"%ARFLAGS $ARFLAGS":1 \ 894 arch-gfortran.fcm > arch-local.fcm 895 echo "NETCDF_LIBDIR=\"-L${ncdfdir}/lib -lnetcdff -lnetcdf\"" \ 896 > arch-local.path 897 echo "NETCDF_INCDIR=${ncdfdir}/include" >> arch-local.path 898 echo "IOIPSL_INCDIR=$ORCHPATH/../../lib" >> arch-local.path 899 echo "IOIPSL_LIBDIR=$ORCHPATH/../../lib" >> arch-local.path 900 echo 'XIOS_INCDIR=${ORCHDIR}/../XIOS/inc' >> arch-local.path 901 echo 'XIOS_LIBDIR="${ORCHDIR}/../XIOS/lib -lxios"' >> arch-local.path 902 cd ../ 903 904 echo ./makeorchidee_fcm -j $xios_orchid $opt_orc -parallel none \ 905 -arch $arch 906 ./makeorchidee_fcm -j 8 $xios_orchid $opt_orc -parallel none \ 907 -arch $arch > $orchideelog 2>&1 908 pwd 926 909 else # of "if [ -d tools ]" 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 910 if [ -d src_parallel ] ; then 911 liste_src="parallel parameters global stomate sechiba driver" 912 if [ "$veget_version" == "false" ] ; then 913 veget_version=orchidee2.0 914 fi 915 fi 916 for d in $liste_src ; do 917 src_d=src_$d 918 echo src_d $src_d 919 echo ls ; ls 920 if [ ! -d $src_d ] ; then 921 echo Problem orchidee : no $src_d ; exit 922 fi 923 cd $src_d ; \rm -f *.mod make ; $make clean 924 $make > $orchideelog 2>&1 925 if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then 926 cp -f *.mod ../../../lib 927 fi 928 cd .. 929 done 947 930 fi # of "if [ -d tools ]" 948 931 echo install_lmdz.sh orchidee_compil_seq_OK `date` … … 974 957 # arch-local.path file 975 958 echo "NETCDF_LIBDIR=\"-L${ncdfdir}/lib -lnetcdff -lnetcdf\"" \ 976 959 > arch-local.path 977 960 echo "NETCDF_INCDIR=-I${ncdfdir}/include" >> arch-local.path 978 961 echo 'NETCDF95_INCDIR=$LMDGCM/../../include' >> arch-local.path … … 986 969 987 970 if [ $pcmac == 1 ] ; then 988 971 BASE_LD="$BASE_LD -Wl,-rpath,${ncdfdir}/lib" 989 972 else 990 973 BASE_LD="$BASE_LD -Wl,-rpath=${ncdfdir}/lib" 991 974 fi 992 975 # Arch-local.fcm file (adapted from arch-linux-32bit.fcm) … … 994 977 if [ $real = r8 ] ; then FPP_DEF=NC_DOUBLE ; else FPP_DEF="" ; fi 995 978 sed -e s:"%COMPILER .*.$":"%COMPILER $compiler":1 \ 996 997 998 999 1000 1001 1002 1003 1004 979 -e s:"%LINK .*.$":"%LINK $compiler":1 \ 980 -e s:"%PROD_FFLAGS .*.$":"%PROD_FFLAGS $OPTIM":1 \ 981 -e s:"%DEV_FFLAGS .*.$":"%DEV_FFLAGS $OPTDEV":1 \ 982 -e s:"%DEBUG_FFLAGS .*.$":"%DEBUG_FFLAGS $OPTDEB":1 \ 983 -e s:"%BASE_FFLAGS .*.$":"%BASE_FFLAGS $OPTPREC":1 \ 984 -e s:"%FPP_DEF .*.$":"%FPP_DEF $FPP_DEF":1 \ 985 -e s:"%BASE_LD .*.$":"%BASE_LD $BASE_LD":1 \ 986 -e s:"%ARFLAGS .*.$":"%ARFLAGS $ARFLAGS":1 \ 987 arch-linux-32bit.fcm > arch-local.fcm 1005 988 1006 989 cd .. … … 1026 1009 if [ $? = 0 ] ; then 1027 1010 svn switch --relocate http://svn.lmd.jussieu.fr/LMDZ \ 1028 1011 https://svn.lmd.jussieu.fr/LMDZ 1029 1012 fi 1030 1013 svn update $svnopt … … 1052 1035 oldrad) iflag_rrtm=0 ; NSW=2 ; opt_rad="" ;; 1053 1036 rrtm) iflag_rrtm=1 ; NSW=6 1054 1055 1056 1057 1058 1037 if [ $mysvn -le 4185 ] ; then 1038 opt_rad="-rrtm true" 1039 else 1040 opt_rad="-rad rrtm" 1041 fi ;; 1059 1042 ecrad) iflag_rrtm=2 ; NSW=6 ; opt_rad="-rad ecrad" ;; 1060 1043 *) echo Only oldrad rrtm ecrad for rad option ; exit … … 1078 1061 cd build 1079 1062 cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$ncdfdir \ 1080 1063 -DCMAKE_INSTALL_PREFIX=$MODEL/modipsl 1081 1064 make install 1082 1065 cd $MODEL/modipsl/modeles/LMDZ* … … 1104 1087 echo Sequential compilation command, saved in compile.sh: 1105 1088 echo "./$makelmdz $optim $OPT_MAKELMDZ $optim $opt_rad $opt_cosp " \ 1106 1089 "-d ${grid_resolution} -v $veget_version gcm " 1107 1090 echo "./$makelmdz $optim $OPT_MAKELMDZ $optim $opt_rad $opt_cosp " \ 1108 1091 "-d ${grid_resolution} -v $veget_version gcm " > compile.sh 1109 1092 chmod +x ./compile.sh 1110 1093 if [ $bench = 1 ] ; then 1111 1112 1113 1114 1094 echo install_lmdz.sh start_lmdz_seq_compilation `date` 1095 echo log file: $lmdzlog 1096 ./compile.sh > $lmdzlog 2>&1 1097 echo install_lmdz.sh end_lmdz_seq_compilation `date` 1115 1098 fi 1116 1099 fi # fin sequential … … 1131 1114 cd $ORCHPATH 1132 1115 if [ -d src_parallel -a $veget != 'NONE' ] ; then 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1116 cd arch 1117 sed \ 1118 -e s:"%COMPILER.*.$":"%COMPILER $par_comp":1 \ 1119 -e s:"%LINK.*.$":"%LINK $par_comp":1 \ 1120 -e s:"%MPI_FFLAG.*.$":"%MPI_FFLAGS $MPI_FLAGS":1 \ 1121 -e s:"%OMP_FFLAG.*.$":"%OMP_FFLAGS $OMP_FLAGS":1 \ 1122 -e s:"%MPI_LD.*.$":"%MPI_LD $MPI_LD":1 \ 1123 -e s:"%OMP_LD.*.$":"%OMP_LD $OMP_LD":1 \ 1124 arch-local.fcm > tmp.fcm 1125 1126 mv tmp.fcm arch-local.fcm 1127 cd ../ 1128 echo Compiling ORCHIDEE in parallel mode `date` 1129 echo logfile $orchideelog 1130 echo "NOTE : to recompile it when necessary, use ./compile_orc.sh " \ 1131 "in modipsl/modeles/ORCHIDEE" 1132 echo ./makeorchidee_fcm -j 8 -clean $xios_orchid $opt_orc \ 1133 -parallel $parallel -arch $arch > compile_orc.sh 1134 echo ./makeorchidee_fcm -j 8 $xios_orchid $opt_orc \ 1135 -parallel $parallel -arch $arch >> compile_orc.sh 1136 echo echo Now you must also recompile LMDZ, by running ./compile.sh \ 1137 in modeles/LMDZ >> compile_orc.sh 1138 chmod u+x compile_orc.sh 1139 ./makeorchidee_fcm -j 8 -clean $xios_orchid $opt_orc \ 1140 -parallel $parallel -arch $arch > $orchideelog 2>&1 1141 ./makeorchidee_fcm -j 8 $xios_orchid $opt_orc -parallel $parallel \ 1142 -arch $arch >> $orchideelog 2>&1 1143 echo End of ORCHIDEE compilation in parallel mode `date` 1161 1144 elif [ $veget != 'NONE' ] ; then 1162 1163 1164 1165 1166 1145 echo '##########################################################' 1146 echo ' Orchidee version too old ' 1147 echo ' Please update to new version ' 1148 echo '##########################################################' 1149 exit 1167 1150 fi # of [ -d src_parallel -a $veget != 'NONE' ] 1168 1151 … … 1170 1153 cd $LMDZPATH 1171 1154 if [ $arch = local ] ; then 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1155 cd arch 1156 sed -e s:"%COMPILER.*.$":"%COMPILER $par_comp":1 \ 1157 -e s:"%LINK.*.$":"%LINK $par_comp":1 \ 1158 -e s:"%MPI_FFLAG.*.$":"%MPI_FFLAGS $MPI_FLAGS":1 \ 1159 -e s:"%OMP_FFLAG.*.$":"%OMP_FFLAGS $OMP_FLAGS":1 \ 1160 -e s:"%ARFLAGS.*.$":"%ARFLAGS $ARFLAGS":1 \ 1161 -e s@"%BASE_LD.*.$"@"%BASE_LD -Wl,-rpath=${root_mpi}/lib:${ncdfdir}/lib"@1 \ 1162 -e s:"%MPI_LD.*.$":"%MPI_LD $MPI_LD":1 \ 1163 -e s:"%OMP_LD.*.$":"%OMP_LD $OMP_LD":1 \ 1164 arch-local.fcm > tmp.fcm 1165 mv tmp.fcm arch-local.fcm 1166 cd ../ 1184 1167 fi 1185 1168 rm -f compile.sh … … 1187 1170 if [ ${hostname:0:5} = jean- -a "$cosp" = "v2" ] ; then 1188 1171 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1172 echo LMDZ compilation command in parallel mode, saved in compile.sh, \ 1173 is : 1174 echo "(ATTENTION le probleme de cospv2 sur jean-zay en mode prod " \ 1175 "n est pas corrige ! )" 1176 # ATTENTION le probleme de cospv2 sur jean-zay en mode prod n 1177 # est pas corrige 1178 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ $opt_rad $opt_cosp \ 1179 $opt_makelmdz_xios -d \$resol -v $veget_version -mem \ 1180 -parallel $parallel gcm >> compile.sh 1181 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ $opt_rad $opt_cosp \ 1182 $opt_makelmdz_xios -d \$resol -v $veget_version -mem \ 1183 -parallel $parallel gcm 1201 1184 else 1202 1203 1204 1205 1206 1207 1185 echo ./$makelmdz $optim $OPT_MAKELMDZ $opt_rad $opt_cosp \ 1186 $opt_makelmdz_xios -d \$resol -v $veget_version -mem \ 1187 -parallel $parallel gcm >> compile.sh 1188 echo ./$makelmdz $optim $OPT_MAKELMDZ $opt_rad $opt_cosp \ 1189 $opt_makelmdz_xios -d \$resol -v $veget_version -mem \ 1190 -parallel $parallel gcm 1208 1191 fi 1209 1192 chmod +x ./compile.sh 1210 1193 1211 1194 if [ $bench = 1 ] ; then 1212 1213 1195 echo Compiling LMDZ in parallel mode `date`, LMDZ log file: $lmdzlog 1196 ./compile.sh > $lmdzlog 2>&1 1214 1197 fi 1215 1198 … … 1233 1216 if [ "$gcm" = "" ] ; then 1234 1217 if [ $bench = 1 ] ; then 1235 1236 1218 echo 'Compilation failed !! Cannot run the benchmark;' 1219 exit 1237 1220 else 1238 1221 echo 'Compilation not done (only done when bench=1)' 1239 1222 fi 1240 1223 else … … 1270 1253 1271 1254 if [ "$cosp" = "v1" -o "$cosp" = "v2" ] ; then 1272 1273 1274 1275 1276 1277 1278 1279 1255 cd BENCH${grid_resolution} 1256 # copier les fichiers namelist input et output our COSP 1257 cp ../DefLists/cosp*_input_nl.txt . 1258 cp ../DefLists/cosp*_output_nl.txt . 1259 # Activer la cles ok_cosp pour tourner avec COSP 1260 sed -e 's@ok_cosp=n@ok_cosp=y@' config.def > tmp 1261 \mv -f tmp config.def 1262 cd .. 1280 1263 fi 1281 1264 1282 1265 if [ -n "$physiq" ]; then 1283 1284 1285 1286 1287 1288 1289 1290 1266 cd BENCH${grid_resolution} 1267 if [ -f physiq.def_${physiq} ]; then 1268 cp physiq.def_${physiq} physiq.def 1269 echo using physiq.def_${physiq} 1270 else 1271 echo using standard physiq.def 1272 fi 1273 cd .. 1291 1274 else 1292 1275 echo using standard physiq.def 1293 1276 fi 1294 1277 1295 1278 if [ "$with_xios" = "y" ] ; then 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1279 cd BENCH${grid_resolution} 1280 cp ../DefLists/iodef.xml . 1281 cp ../DefLists/context_lmdz.xml . 1282 cp ../DefLists/field_def_lmdz.xml . 1283 # A raffiner par la suite 1284 echo A FAIRE : Copier les *xml en fonction de l option cosp 1285 cp ../DefLists/field_def_cosp*.xml . 1286 cp ../DefLists/file_def_hist*xml . 1287 # adapt iodef.xml to use attached mode 1288 sed -e 's@"using_server" type="bool">true@"using_server" type="bool">false@' \ 1289 iodef.xml > tmp 1290 \mv -f tmp iodef.xml 1291 1292 # and convert all the enabled="_AUTO_" (for libIGCM) to enabled=.FALSE. 1293 # except for histday 1294 for histfile in file_def_hist*xml 1295 do 1296 if [ "$histfile" = "file_def_histday_lmdz.xml" ] ; then 1297 sed -e 's@enabled="_AUTO_"@type="one_file" enabled=".TRUE."@' \ 1298 $histfile > tmp 1299 \mv -f tmp $histfile 1300 sed -e 's@output_level="_AUTO_"@output_level="5"@' $histfile \ 1301 > tmp 1302 \mv -f tmp $histfile 1303 sed -e 's@compression_level="2"@compression_level="0"@' \ 1304 $histfile > tmp 1305 \mv -f tmp $histfile 1306 else 1307 sed -e 's@enabled="_AUTO_"@type="one_file" enabled=".FALSE."@' \ 1308 $histfile > tmp 1309 \mv -f tmp $histfile 1310 fi 1311 done 1312 # and add option "ok_all_xml=y" in config.def 1313 echo "### XIOS outputs" >> config.def 1314 echo 'ok_all_xml=.true.' >> config.def 1315 1316 #activer les sorties pour Cosp 1317 if [ "$cosp" = "v1" ] ; then 1318 histfile=file_def_histdayCOSP_lmdz.xml 1319 sed -e 's@enabled=".FALSE."@enabled=".TRUE."@' $histfile > tmp 1320 \mv -f tmp $histfile 1321 sed -e 's@output_level="_AUTO_"@output_level="5"@' $histfile > tmp 1322 \mv -f tmp $histfile 1323 sed -e 's@compression_level="2"@compression_level="0"@' \ 1324 $histfile > tmp 1325 \mv -f tmp $histfile 1326 fi 1327 if [ "$cosp" = "v2" ] ; then 1328 histfile=file_def_histdayCOSPv2_lmdz.xml 1329 sed -e 's@compression_level="2"@compression_level="0"@' \ 1330 $histfile > tmp 1331 \mv -f tmp $histfile 1332 contextfile=context_lmdz.xml 1333 sed -e 's@src="./file_def_histdayCOSP_lmdz.xml"@src="./file_def_histdayCOSPv2_lmdz.xml"@' \ 1334 $contextfile > tmp 1335 \mv -f tmp $contextfile 1336 sed -e 's@src="./file_def_histmthCOSP_lmdz.xml"@src="./file_def_histmthCOSPv2_lmdz.xml"@' \ 1337 $contextfile > tmp 1338 \mv -f tmp $contextfile 1339 sed -e 's@src="./file_def_histhfCOSP_lmdz.xml"@src="./file_def_histhfCOSPv2_lmdz.xml"@' \ 1340 $contextfile > tmp 1341 \mv -f tmp $contextfile 1342 fieldfile=field_def_lmdz.xml 1343 sed -e 's@field_def_cosp1.xml@field_def_cospv2.xml@' $fieldfile \ 1344 > tmp 1345 \mv -f tmp $fieldfile 1346 fi 1347 1348 cd .. 1366 1349 fi 1367 1350 1368 1351 # Cas Bensh avec ecrad 1369 1352 if [ "$rad" = "ecrad" ] ; then 1370 1371 1372 1373 1353 cd BENCH${grid_resolution} 1354 cp ../DefLists/namelist_ecrad . 1355 cp -r ../libf/phylmd/ecrad/data . 1356 cd .. 1374 1357 fi 1375 1358 … … 1377 1360 cd BENCH${grid_resolution} 1378 1361 sed -e 's/iflag_rrtm=.*.$/iflag_rrtm='$iflag_rrtm'/' \ 1379 1362 -e 's/NSW=.*.$/NSW='$NSW'/' physiq.def > tmpdef 1380 1363 \mv tmpdef physiq.def 1381 1364 cd .. … … 1388 1371 1389 1372 if [ "$grid_resolution" = "48x36x39" ] ; then 1390 1391 1392 1393 1394 1373 echo On ne touche pas au bench.sh 1374 # But we have to adapt "run_local.sh" for $mpirun 1375 sed -e "s@mpirun@$mpirun@g" run_local.sh > tmp 1376 mv -f tmp run_local.sh 1377 chmod u=rwx run_local.sh 1395 1378 elif [ "${parallel:0:3}" = "mpi" ] ; then 1396 1397 1398 1379 # Lancement avec deux procs mpi et 2 openMP 1380 echo "export OMP_STACKSIZE=800M" > bench.sh 1381 if [ "${parallel:4:3}" = "omp" ] ; then 1399 1382 echo "export OMP_NUM_THREADS=2" >> bench.sh 1400 1401 1383 fi 1384 if [ "$cosp" = "v1" -o "$cosp" = "v2" ] ; then 1402 1385 if [ ${hostname:0:5} = jean- ] ; then 1403 1404 ../arch.env 1405 1386 chmod +x ../arch.env 1387 ../arch.env 1388 echo "ulimit -s 2000000" >> bench.sh 1406 1389 else 1407 1408 fi 1409 1390 echo "ulimit -s 200000" >> bench.sh 1391 fi 1392 else 1410 1393 echo "ulimit -s unlimited" >> bench.sh 1411 1412 1394 fi 1395 if [ ${hostname:0:5} = jean- ] ; then 1413 1396 . ../arch/arch-${arch}.env 1414 1397 echo "srun -n 2 -A $idris_acct@cpu gcm.e > listing 2>&1" \ 1415 1416 1398 >> bench.sh 1399 else 1417 1400 echo "$mpirun -np 2 gcm.e > listing 2>&1" >> bench.sh 1418 1419 1420 1421 1422 1423 1424 1401 fi 1402 # Add rebuild, using reb.sh if it is there 1403 echo 'if [ -f reb.sh ] ; then' >> bench.sh 1404 echo ' ./reb.sh histday ; ./reb.sh histmth ; ./reb.sh histhf ; ' \ 1405 './reb.sh histins ; ./reb.sh stomate_history ; ' \ 1406 './reb.sh sechiba_history ; ./reb.sh sechiba_out_2 ' >> bench.sh 1407 echo 'fi' >> bench.sh 1425 1408 else 1426 1409 echo "./gcm.e > listing 2>&1" > bench.sh 1427 1410 fi 1428 1411 # Getting orchidee stuff 1429 1412 if [ $veget == 'CMIP6' ] ; then 1430 1431 1432 1433 1434 1435 1436 1437 1438 1413 #echo 'myget 3DBenchs/BENCHorch11.tar.gz' 1414 #myget 3DBenchs/BENCHorch11.tar.gz 1415 #tar xvzf BENCHorch11.tar.gz 1416 echo 'myget 3DBenchs/BENCHCMIP6.tar.gz' 1417 myget 3DBenchs/BENCHCMIP6.tar.gz 1418 tar xvzf BENCHCMIP6.tar.gz 1419 sed -e "s:VEGET=n:VEGET=y:" config.def > tmp 1420 mv -f tmp config.def 1421 if [ "$with_xios" = "y" ] ; then 1439 1422 cp ../../ORCHIDEE/src_xml/context_orchidee.xml . 1440 1423 echo '<context id="orchidee" src="./context_orchidee.xml"/>' \ 1441 1424 > add.tmp 1442 1425 cp ../../ORCHIDEE/src_xml/field_def_orchidee.xml . 1443 1426 cp ../../ORCHIDEE/src_xml/file_def_orchidee.xml . 1444 1427 cp ../../ORCHIDEE/src_xml/file_def_input_orchidee.xml . 1445 1428 if [ -f ../../ORCHIDEE/src_xml/context_input_orchidee.xml ] ; then 1446 1447 1448 1429 cp ../../ORCHIDEE/src_xml/context_input_orchidee.xml . 1430 echo '<context id="orchidee" ' \ 1431 'src="./context_input_orchidee.xml"/>' >> add.tmp 1449 1432 fi 1450 1433 sed -e '/id="LMDZ"/r add.tmp' iodef.xml > tmp 1451 1434 mv tmp iodef.xml 1452 1435 sed -e'{/sechiba1/ s/enabled="_AUTO_"/type="one_file" enabled=".TRUE."/}' \ 1453 1454 1436 file_def_orchidee.xml > tmp 1437 \mv -f tmp file_def_orchidee.xml 1455 1438 sed -e 's@enabled="_AUTO_"@type="one_file" enabled=".FALSE."@' \ 1456 1457 1439 file_def_orchidee.xml > tmp 1440 \mv -f tmp file_def_orchidee.xml 1458 1441 sed -e 's@output_level="_AUTO_"@output_level="1"@' \ 1459 1460 1442 file_def_orchidee.xml > tmp 1443 \mv -f tmp file_def_orchidee.xml 1461 1444 sed -e 's@output_freq="_AUTO_"@output_freq="1d"@' \ 1462 1463 1445 file_def_orchidee.xml > tmp 1446 \mv -f tmp file_def_orchidee.xml 1464 1447 sed -e 's@compression_level="4"@compression_level="0"@' \ 1465 1466 1448 file_def_orchidee.xml > tmp 1449 \mv -f tmp file_def_orchidee.xml 1467 1450 sed -e 's@XIOS_ORCHIDEE_OK = n@XIOS_ORCHIDEE_OK = y@' \ 1468 1469 1470 1451 orchidee.def > tmp 1452 \mv -f tmp orchidee.def 1453 fi 1471 1454 fi 1472 1455 1473 1456 if [[ -f ../arch.env ]] 1474 1457 then 1475 1458 source ../arch.env 1476 1459 fi 1477 1460 … … 1488 1471 cat ../compile.sh 1489 1472 if [ $parallel = "none" ] ; then 1490 1491 1473 echo 'You may re-run it with : cd ' `pwd` ' ; gcm.e' 1474 echo 'or ./bench.sh' 1492 1475 else 1493 1494 1495 1496 1497 1498 1476 echo 'You may re-run it with : ' 1477 echo 'cd ' `pwd` '; ./bench.sh' 1478 # echo 'ulimit -s unlimited' 1479 # echo 'export OMP_NUM_THREADS=2' 1480 # echo 'export OMP_STACKSIZE=800M' 1481 # echo "$mpirun -np 2 gcm.e " 1499 1482 fi 1500 1483 echo '##########################################################'
Note: See TracChangeset
for help on using the changeset viewer.