Changeset 170
- Timestamp:
- Dec 21, 2000, 4:34:00 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/trunk/makegcm
r169 r170 1 1 #!/bin/csh 2 # $Header$ 2 3 #set verbose echo 3 4 ######################################################################## 4 5 # options par defaut pour la commande make 5 6 ######################################################################## 6 set dim="72x4 6x19"7 set dim="72x45x19" 7 8 set physique=lmd 8 9 set phys="PHYS=$physique" … … 33 34 set NCDFLIB=`grep sxnec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 34 35 else 35 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' 36 if ( `hostname` == nymphea0 ) then 37 set NCDFINC=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 38 set NCDFLIB=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 39 else 40 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' 41 endif 36 42 endif 37 cp libf/phylmd/oasis.F libf/phylmd/oasis.dummy38 cp libf/phylmd/oasis.true libf/phylmd/oasis.F43 \cp libf/phylmd/oasis.F libf/phylmd/oasis.dummy 44 \cp libf/phylmd/oasis.true libf/phylmd/oasis.F 39 45 else 40 46 if ( ! $?LMDGCM ) then … … 64 70 set model=$LMDGCM 65 71 set libo=$LIBOGCM 72 73 #Force/couple 74 set COUPLE=0 75 set ocean=`grep '^ parameter (ocean' libf/phylmd/physiq.F | awk -F\' '{print $2}'` 76 banner $ocean 77 if ($ocean == couple) then 78 set COUPLE=1 79 endif 80 66 81 67 82 ######################################################################## … … 168 183 # set optim="-Dasuxm -On, -g -Ad -Potilax -Eciplume -Si" 169 184 # set optimbis=" -Wv,-m3 -Wp,-DVPP -Z $LMDGCM/listage" 170 set optimbis=" -Z $LMDGCM/listage" 171 set optim90="$optim $optimbis -w" 172 set opt_link="-Wg,-c -L$IOIPSLDIR -lioipsl -L$NCDFLIB -lnetcdf" 173 set oplink=" " 185 set optimbis=" -Wp,-DNC_DOUBLE -Ad -Z $LMDGCM/listage" 186 set optim90="$optim $optimbis -X9 -w" 187 if $COUPLE then 188 set opt_link="-Wg,-c $IOIPSLDIR/liboasis2.4_mpi2.a /usr/lang/mpi2/lib64/libmpi.a /usr/lang/mpi2/lib64/libmp.a /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl" 189 set oplink="-Wl,-t,-P,-dy " 190 else 191 set opt_link="-Wg,-c /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl" 192 set oplink="-Wl,-t,-dy " 193 endif 174 194 set mod_loc_dir=$IOIPSLDIR 175 195 set mod_suffix=mod … … 198 218 set optimbis=" " 199 219 if $MODIPSL then 200 set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB " 201 set mod_loc_dir="$localdir/../lib" 220 if $COUPLE then 221 set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -Wl,-f nan, -float0 -ew -P stack -I$NCDFINC $NCDFLIB " 222 set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB " 223 # set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -eC -P stack -I$NCDFINC $NCDFLIB " 224 else 225 set opt_link="-L$IOIPSLDIR -lsxioipsl -float0 -ew -P stack -I$NCDFINC $NCDFLIB " 226 endif 227 set mod_loc_dir="./" 202 228 else 203 set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -l ioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC "229 set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lsxioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC " 204 230 set mod_loc_dir="." 205 231 endif … … 682 708 if $VPP then 683 709 set optim90=" $optim90 -Am -M$libo" 710 set optimtru90="$optim90" 684 711 \cp $IOIPSLDIR/*.mod $libo 685 712 else if $SUN then
Note: See TracChangeset
for help on using the changeset viewer.