Changeset 722 for LMDZ4/branches/V3_test
- Timestamp:
- Oct 6, 2006, 12:46:42 PM (18 years ago)
- Location:
- LMDZ4/branches/V3_test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/create_make_gcm
r704 r722 9 9 libf=$gcm/libf 10 10 libo=$gcm/libo 11 12 X6NEC=1 13 11 CRAY=0 12 if [ "$machine" = "atlas" -o "$machine" = "etoile" -o "$machine" = "axis" ] ; then 13 CRAY=1 14 fi 15 XNEC=0 16 if [ "$machine" = "rhodes" ] ; then 17 XNEC=1 18 fi 19 X6NEC=0 20 if [ "$machine" = "mercure" ] ; then 21 X6NEC=1 22 fi 23 X8BRODIE=0 24 if [ "$machine" = "brodie" ] ; then 25 X8BRODIE=1 26 fi 27 VPP=0 28 if [ "$machine" = "nymphea0" ] ; then 29 VPP=1 30 fi 31 # 14 32 echo "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" 15 33 echo "# Definitions de Macros pour Make" … … 20 38 echo "GCM = "$gcm 21 39 echo 'LIBF = $(GCM)/libf' 22 echo 'LIBO = $(GCM)/libo' 40 if [ "$CRAY" = '0' ] ; then 41 # echo 'LIBO = $(GCM)/libo/$(MACHINE)' 42 echo 'LIBO = $(LIBOGCM)/$(MACHINE)' 43 else 44 echo 'LIBO = $(GCM)/libo' 45 fi 46 #echo 'LOCAL_DIR=$(GCM)' 47 #echo $localdir 23 48 echo "LOCAL_DIR=`echo $localdir`" 24 49 echo 'BIBIO = $(LIBF)/bibio' … … 34 59 echo '# Les differentes librairies pour l"edition des liens:' 35 60 echo 36 echo 'dyn3d = $(LIBO)/libdyn3d.a $(LIBO)/lib$(FILTRE).a' 37 echo 'dyn3d_par = $(LIBO)/libdyn3d_par.a $(LIBO)/lib$(FILTRE).a' 38 echo 'dyn2d = $(LIBO)/libdyn2d.a' 39 echo 'dyn1d = $(LIBO)/libdyn1d.a' 40 echo 'L_DYN = -ldyn$(DIM)d$(FLAG_PARA)' 41 echo 'L_FILTRE = -l$(FILTRE)' 42 echo 'L_PHY = -lphy$(PHYS) ' 43 echo 'L_BIBIO = -lbibio' 44 echo 'L_ADJNT =' 61 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then 62 echo 'dyn3d = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a' 63 echo 'dyn3dpar = $(LIBO)/libsxdyn3dpar.a $(LIBO)/libsx$(FILTRE).a' 64 echo 'dyn2d = $(LIBO)/libsxdyn2d.a' 65 echo 'dyn1d = $(LIBO)/libsxdyn1d.a' 66 echo 'L_DYN = -lsxdyn$(DIM)d' 67 echo 'L_FILTRE = -lsx$(FILTRE)' 68 echo 'L_PHY = -lsxphy$(PHYS) ' 69 echo 'L_BIBIO = -lsxbibio' 70 echo 'L_ADJNT =' 71 else 72 echo 'dyn3d = $(LIBO)/libdyn3d.a $(LIBO)/lib$(FILTRE).a' 73 echo 'dyn3dpar = $(LIBO)/libdyn3dpar.a $(LIBO)/lib$(FILTRE).a' 74 echo 'dyn2d = $(LIBO)/libdyn2d.a' 75 echo 'dyn1d = $(LIBO)/libdyn1d.a' 76 echo 'L_DYN = -ldyn$(DIM)d$(FLAG_PARA)' 77 echo 'L_FILTRE = -l$(FILTRE)' 78 echo 'L_PHY = -lphy$(PHYS) ' 79 echo 'L_BIBIO = -lbibio' 80 echo 'L_ADJNT =' 81 fi 45 82 46 83 echo … … 65 102 echo "PROG = code" 66 103 echo 67 echo 'main : chimie $(DYN) bibio phys $(OPTION_DEP) ' 104 #echo 'main : chimie $(DYN) bibio phys $(OPTION_DEP) ' 105 echo 'main : $(DYN) bibio phys $(OPTION_DEP) ' 68 106 echo ' cd $(LIBO) ; $(RANLIB) lib*.a ; cd $(GCM) ;\' 69 107 echo ' cd $(LOCAL_DIR); \' … … 75 113 echo 'phys : $(LIBPHY)' 76 114 echo 77 echo 'chimie : $(LIBO)/libchimie.a'115 #echo 'chimie : $(LIBO)/libchimie.a' 78 116 echo 79 117 echo 'bibio : $(LIBO)/libbibio.a' … … 187 225 fi 188 226 fi 227 if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then 228 echo ' sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \' 229 fi 189 230 echo ' $(AR) r $(LIBO)/lib'$diri'.a '$fili'.o ; $(RM) '$fili'.o ; \' 190 231 echo ' cd $(GCM)' -
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.