Changeset 742
- Timestamp:
- Dec 11, 2006, 2:46:46 PM (18 years ago)
- Location:
- LMDZ4/branches/IPSL-CM4_IPCC_patches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/IPSL-CM4_IPCC_patches/create_make_gcm
r540 r742 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_patches/makegcm
r592 r742 52 52 set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 53 53 set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 54 else if ( `hostname` == brodie ) then 55 set NCDFINC=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 56 set NCDFLIB=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 54 57 else 55 58 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' … … 100 103 set XNEC=0 101 104 set X6NEC=0 105 set X8BRODIE=0 102 106 if ( `uname` == HP-UX ) then 103 107 set machine=HP … … 115 119 set machine=ALPHA 116 120 set DEC=1 117 else if ( `uname` == Linux && `hostname` != mercure ) then121 else if ( `uname` == Linux && `hostname` != mercure && `hostname` != brodie ) then 118 122 set machine=LINUX 119 123 set LINUX=1 … … 130 134 set machine=X6NEC 131 135 set X6NEC=1 136 else if ( `hostname` == brodie) then 137 set machine=X8BRODIE 138 set X8BRODIE=1 132 139 else 133 140 echo Vous travaillez sur une machine non prevue par le reglement … … 245 252 set optim90=' -clear -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "' 246 253 set optimtru90=' -clear -f4 -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"' 254 set optim="$optim90" 255 set optimbis=" " 256 set mod_suffix="mod" 257 set mod_loc_dir="./" 258 ################# 259 else if $X8BRODIE then 260 ################## 261 set optdbl='-dw -Wf\"-A dbl4\"' 262 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' 263 set optimtru90="$optim90" 264 set optim90="$optim90" 247 265 set optim="$optim90" 248 266 set optimbis=" " … … 453 471 ######################################################################## 454 472 473 set cppflags='' 474 475 if $X8BRODIE then 476 set cppflags="$cppflags -DNC_DOUBLE -DBLAS -DSGEMV=DGEMV -DSGEMM=DGEMM" 477 endif 478 455 479 if ( $io == ioipsl ) then 456 480 set optim="$optim -DCPP_IOIPSL" … … 539 563 set nomlib=F90_${dim_}_t${ntrac} 540 564 endif 541 if ( $NEC || $XNEC || $X6NEC ) then565 if ( $NEC || $XNEC || $X6NEC || $X8BRODIE ) then 542 566 set nomlib=F90_${dim_}_t${ntrac} 543 567 endif … … 801 825 endif 802 826 set mod_loc_dir="./" 827 ################## 828 else if $X8BRODIE then 829 ################## 830 set f77=sxmpif90 831 set f90=sxmpif90 832 if $MODIPSL then 833 set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas" 834 if ($veget == true) then 835 set opt_link="$opt_link $link_veget" 836 endif 837 if ($couple == true) then 838 if ($psmile == true) then 839 set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB " 840 else 841 set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 -float0 $optdbl -P static $NCDFLIB " 842 endif 843 else 844 set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB " 845 endif 846 else 847 # set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxsechiba -lsxparameters -lsxstomate -lsxioipsl $NCDFLIB " 848 set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxioipsl $NCDFLIB " 849 850 endif 851 set mod_loc_dir="./" 803 852 ################# 804 853 else … … 821 870 set make="gmake RANLIB=ls" 822 871 else if $X6NEC then 872 set make="gmake RANLIB=ls" 873 else if $X8BRODIE then 823 874 set make="gmake RANLIB=ls" 824 875 else … … 882 933 set optim90=" $optim90 -I$libo " 883 934 set optimtru90=" $optimtru90 -I$libo " 935 else if $X8BRODIE then 936 set optim90=" $optim90 -I$libo " 937 set optimtru90=" $optimtru90 -I$libo " 884 938 else if $LINUX then 885 939 set optim90=" $optim90 -module $libo " … … 900 954 else if $X6NEC then 901 955 set link="sxld $opt_link" 902 set link="$f90 " 956 set link="$f90 -Wl,-hlib_cyclic " 957 else if $X8BRODIE then 958 set link="sxld $opt_link" 959 set link="$f90 -Wl,-hlib_cyclic " 903 960 endif 904 961
Note: See TracChangeset
for help on using the changeset viewer.