Changeset 722 for LMDZ4/branches/V3_test/makegcm
- Timestamp:
- Oct 6, 2006, 12:46:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/makegcm
r714 r722 65 65 set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 66 66 set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 67 else if ( `hostname` == brodie ) then 68 set NCDFINC=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 69 set NCDFLIB=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 67 70 else 68 71 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' … … 113 116 set XNEC=0 114 117 set X6NEC=0 118 set X8BRODIE=0 115 119 if ( `uname` == HP-UX ) then 116 120 set machine=HP … … 128 132 set machine=ALPHA 129 133 set DEC=1 130 else if ( `uname` == Linux && `hostname` != mercure ) then134 else if ( `uname` == Linux && `hostname` != mercure && `hostname` != brodie ) then 131 135 set machine=LINUX 132 136 set LINUX=1 … … 143 147 set machine=X6NEC 144 148 set X6NEC=1 149 else if ( `hostname` == brodie) then 150 set machine=X8BRODIE 151 set X8BRODIE=1 145 152 else 146 153 echo Vous travaillez sur une machine non prevue par le reglement … … 270 277 set optim90=' -clear -float0 -f3 -size_t64 -P stack -Wf "-init stack=nan -init heap=nan" -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "' 271 278 set optimtru90=' -clear -f4 -float0 -size_t64 -P stack -Wf "-init stack=nan -init heap=nan" -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"' 279 set optim="$optim90" 280 set optimbis=" " 281 set mod_suffix="mod" 282 set mod_loc_dir="./" 283 ################# 284 else if $X8BRODIE then 285 ################# 286 set optdbl='-dw -Wf\"-A dbl4\"' 287 set optim90=' -clear -float0 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "' 288 set optimtru90=' -clear -f4 -float0 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"' 272 289 set optim="$optim90" 273 290 set optimbis=" " … … 556 573 set FLAG_PARA='' 557 574 if ( "$parallel" == 'true' ) then 558 set cppflags="$cppflags -DCPP_PARA LLEL"575 set cppflags="$cppflags -DCPP_PARA" 559 576 set FLAG_PARA='_par' 560 577 endif … … 625 642 set nomlib=F90_${dim_}_t${ntrac} 626 643 endif 627 if ( $NEC || $XNEC || $X6NEC ) then644 if ( $NEC || $XNEC || $X6NEC || $X8BRODIE ) then 628 645 set nomlib=F90_${dim_}_t${ntrac} 629 646 endif … … 786 803 # On adapte d'abord certains include à F90 787 804 ########################################## 788 sed -e 's/^c/\!/' $libf/grid/dimensions.h >! $libf/grid/dimensions90.tmp789 if ( ! -f $libf/grid/dimensions90.h || `diff $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h | wc -w` ) then790 \mv $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h791 endif805 #sed -e 's/^c/\!/' $libf/grid/dimensions.h >! $libf/grid/dimensions90.tmp 806 #if ( ! -f $libf/grid/dimensions90.h || `diff $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h | wc -w` ) then 807 # \mv $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h 808 #endif 792 809 awk 'BEGIN {} { sub ("^c","\!") ; if ($0 ~ /^ s/) {if (NR > 1) print p0," &"; sub (" s"," \\&")} else { if (NR > 1) print p0 } p0=$0 } END { print p0}' $libf/dyn3d/paramet.h >! $libf/dyn3d/paramet90.tmp 793 810 # sed -n -e 's/^c/\!/' -e '1 h' -e '2,$ H' -e '$ { x ; s/\n s/ \&\n \& /g ; p }' $libf/dyn3d/paramet.h >! $libf/dyn3d/paramet90.tmp … … 956 973 endif 957 974 set mod_loc_dir="./" 975 ################## 976 else if $X8BRODIE then 977 ################## 978 set f77=sxmpif90 979 set f90=sxmpif90 980 if $MODIPSL then 981 set opt_link="$opt_link -L$MODIPSLDIR" 982 if ($veget == true) then 983 set opt_link="$opt_link -lsxsechiba -lsxparameters -lsxstomate" 984 endif 985 if ($couple == true) then 986 if ($psmile == true) then 987 set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB " 988 else 989 set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 -float0 $optdbl -P static $NCDFLIB " 990 endif 991 else 992 set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB " 993 endif 994 else 995 # set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxsechiba -lsxparameters -lsxstomate -lsxioipsl $NCDFLIB " 996 set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxioipsl $NCDFLIB " 997 998 endif 999 set mod_loc_dir="./" 958 1000 ################# 959 1001 else … … 976 1018 set make="gmake RANLIB=ls" 977 1019 else if $X6NEC then 1020 set make="gmake RANLIB=ls" 1021 else if $X8BRODIE then 978 1022 set make="gmake RANLIB=ls" 979 1023 else … … 1015 1059 set optim90=" $optim90 -I$libo " 1016 1060 set optimtru90=" $optimtru90 -I$libo " 1061 else if $X8BRODIE then 1062 set optim90=" $optim90 -I$libo " 1063 set optimtru90=" $optimtru90 -I$libo " 1017 1064 else if $LINUX then 1018 1065 if ( $FC_LINUX == "pgf90" ) then … … 1038 1085 # set ar=sxar 1039 1086 else if $X6NEC then 1087 set link="sxld $opt_link" 1088 set link="$f90 " 1089 else if $X8BRODIE then 1040 1090 set link="sxld $opt_link" 1041 1091 set link="$f90 "
Note: See TracChangeset
for help on using the changeset viewer.