Changeset 744 for LMDZ4/branches/IPSL-CM4_IPCC_branch
- Timestamp:
- Jan 18, 2007, 4:54:58 PM (18 years ago)
- Location:
- LMDZ4/branches/IPSL-CM4_IPCC_branch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/IPSL-CM4_IPCC_branch/create_make_gcm
r588 r744 20 20 if [ "$machine" = "mercure" ] ; then 21 21 X6NEC=1 22 fi 23 X8BRODIE=0 24 if [ "$machine" = "brodie" ] ; then 25 X8BRODIE=1 22 26 fi 23 27 VPP=0 … … 58 62 echo '# Les differentes librairies pour l"edition des liens:' 59 63 echo 60 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] ) ; then64 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then 61 65 echo 'dyn3d = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a' 62 66 echo 'dyn2d = $(LIBO)/libsxdyn2d.a' … … 221 225 fi 222 226 fi 223 if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] ) ; then227 if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then 224 228 echo ' sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \' 225 229 fi -
LMDZ4/branches/IPSL-CM4_IPCC_branch/makegcm
r628 r744 53 53 set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 54 54 set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 55 else if ( `hostname` == brodie ) then 56 set NCDFINC=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 57 set NCDFLIB=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 55 58 else 56 59 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' … … 101 104 set XNEC=0 102 105 set X6NEC=0 106 set X8BRODIE=0 103 107 if ( `uname` == HP-UX ) then 104 108 set machine=HP … … 116 120 set machine=ALPHA 117 121 set DEC=1 118 else if ( `uname` == Linux && `hostname` != mercure ) then122 else if ( `uname` == Linux && `hostname` != mercure && `hostname` != brodie ) then 119 123 set machine=LINUX 120 124 set LINUX=1 … … 131 135 set machine=X6NEC 132 136 set X6NEC=1 137 else if ( `hostname` == brodie) then 138 set machine=X8BRODIE 139 set X8BRODIE=1 133 140 else 134 141 echo Vous travaillez sur une machine non prevue par le reglement … … 246 253 set optim90=' -clear -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "' 247 254 set optimtru90=' -clear -f4 -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"' 255 set optim="$optim90" 256 set optimbis=" " 257 set mod_suffix="mod" 258 set mod_loc_dir="./" 259 ################# 260 else if $X8BRODIE then 261 ################## 262 set optdbl='-dw -Wf\"-A dbl4\"' 263 set optim90='-P stack -Wf,-pvctl res=whole,-A dbl4,-ptr byte -EP -R5 -float0 -dw -Wf,"-pvctl loopcnt=999999 fullmsg noassume" -I/SX/usr/include' 264 set optimtru90="$optim90" 265 set optim90="$optim90" 248 266 set optim="$optim90" 249 267 set optimbis=" " … … 458 476 ######################################################################## 459 477 478 set cppflags='' 479 480 if $X8BRODIE then 481 set cppflags="$cppflags -DNC_DOUBLE -DBLAS -DSGEMV=DGEMV -DSGEMM=DGEMM" 482 endif 483 460 484 if ( $io == ioipsl ) then 461 485 set optim="$optim -DCPP_IOIPSL" … … 478 502 set optimtru90="$optimtru90 -DCPP_VEGET" 479 503 set link_veget=" -lsechiba -lparameters -lstomate" 480 if ( $XNEC ) then504 if ( $XNEC || $X6NEC || $X8BRODIE ) then 481 505 set link_veget=" -lsxsechiba -lsxparameters -lsxstomate" 482 506 endif … … 549 573 set nomlib=F90_${dim_}_t${ntrac} 550 574 endif 551 if ( $NEC || $XNEC || $X6NEC ) then575 if ( $NEC || $XNEC || $X6NEC || $X8BRODIE ) then 552 576 set nomlib=F90_${dim_}_t${ntrac} 553 577 endif … … 843 867 endif 844 868 set mod_loc_dir="./" 869 ################## 870 else if $X8BRODIE then 871 ################## 872 set f77=sxmpif90 873 set f90=sxmpif90 874 set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas" 875 set opt_link="$opt_link $link_veget" 876 if $MODIPSL then 877 # set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas" 878 if ($veget == true) then 879 # set opt_link="$opt_link $link_veget" 880 endif 881 if ($couple == true) then 882 if ($psmile == true) then 883 set opt_link="$opt_link -lsxioipsl $optdbl -P static $NCDFLIB " 884 else 885 set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 $optdbl -P static $NCDFLIB " 886 endif 887 else 888 set opt_link="$opt_link -lsxioipsl $optdbl -P static $NCDFLIB " 889 endif 890 else 891 set opt_link="$opt_link $optdbl -P static -lsxioipsl $NCDFLIB " 892 endif 893 set mod_loc_dir="./" 845 894 ################# 846 895 else … … 863 912 set make="gmake RANLIB=ls" 864 913 else if $X6NEC then 914 set make="gmake RANLIB=ls" 915 else if $X8BRODIE then 865 916 set make="gmake RANLIB=ls" 866 917 else … … 924 975 set optim90=" $optim90 -I$libo " 925 976 set optimtru90=" $optimtru90 -I$libo " 977 else if $X8BRODIE then 978 set optim90=" $optim90 -I$libo " 979 set optimtru90=" $optimtru90 -I$libo " 926 980 else if $LINUX then 927 981 set optimtru90=" $optimtru90 -module $libo " … … 943 997 else if $X6NEC then 944 998 set link="sxld $opt_link" 945 set link="$f90 " 999 set link="$f90 -Wl,-hlib_cyclic " 1000 else if $X8BRODIE then 1001 set link="sxld $opt_link" 1002 set link="$f90 -Wl,-hlib_cyclic " 946 1003 endif 947 1004
Note: See TracChangeset
for help on using the changeset viewer.