Changeset 676
- Timestamp:
- Dec 1, 2005, 12:32:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/makegcm
r672 r676 23 23 set OPTIMI='-C debug -eC ' 24 24 set OPTIMI=' -ftrace ' 25 set OPT_LINUX='-O3' 25 26 set io=ioipsl 27 28 set FC_LINUX=g95 26 29 27 30 ######################################################################## … … 35 38 #setenv LIBOGCM $LMDGCM/libo 36 39 # 40 #setenv IOIPSLDIR /u/fairhead/modipsl_g95/lib 41 #setenv MODIPSLDIR /u/fairhead/modipsl_g95/lib 42 #setenv NCDFINC "/u/fairhead/netcdf-3.6.0-p1/linux-g95/include/" 43 #setenv NCDFLIB "/u/fairhead/netcdf-3.6.0-p1/linux-g95/lib/" 37 44 38 45 setenv localdir "`pwd`" … … 221 228 else if $LINUX then 222 229 ################# 223 set optim="-O0 " 224 set optim90="-O0 " 230 if ( $FC_LINUX == "pgf90" ) then 231 set optim="-fast " 232 set optim90=" -fast " 225 233 # set optimtru90=" -fast -c -Mfree -module $MODIPSLDIR " 226 set optimtru90="-O0 -c -Mfree " 227 set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR -lsechiba -lparameters -lstomate -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/" 234 set optimtru90=" -fast -c -Mfree " 235 else if ( $FC_LINUX == 'g95' ) then 236 set optim=" $OPT_LINUX -fno-second-underscore -ffixed-form -fstatic " 237 set optim90=" $OPT_LINUX -fno-second-underscore -ffixed-form -fstatic " 238 set optimtru90=" $OPT_LINUX -fno-second-underscore -ffree-form -fstatic " 239 else 240 echo 'compilateur linux non reconnu' 241 exit 242 endif 228 243 set mod_loc_dir=$MODIPSLDIR 229 244 set mod_suffix=mod … … 460 475 set optim90="$optim90"" -G1 " 461 476 else if $LINUX then 462 set optim="$optim"" -g -Mbounds -C " 463 set optim90="$optim90"" -g -Mbounds -C " 477 if ( $FC_LINUX == "pgf90" ) then 478 set optim="$optim"" -g -C -Mbounds " 479 set optim90="$optim90"" -g -C -Mbounds " 480 set optimtru90="$optimtru90"" -g -C -Mbounds " 481 else if ( $FC_LINUX == 'g95' ) then 482 set optim="$optim"" -g -fbounds-check " 483 set optim90="$optim90"" -g -fbounds-check " 484 set optimtru90="$optimtru90"" -g -fbounds-check " 485 else 486 echo 'compilateur linux non reconnu' 487 exit 488 endif 464 489 else 465 490 echo pas d option debug predefinie pour cette machine … … 848 873 else if $LINUX then 849 874 ################# 850 set f77=pgf90 851 set f90=pgf90 852 set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/" 875 # set f77=pgf90 876 # set f90=pgf90 877 set f77=$FC_LINUX 878 set f90=$FC_LINUX 879 if ( $FC_LINUX == 'pgf90' ) then 880 set opt_link=" -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/" 881 else if ($FC_LINUX == 'g95') then 882 set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf " 883 else 884 set opt_link=" " 885 endif 853 886 ################# 854 887 else if $SUN then … … 985 1018 set optimtru90=" $optimtru90 -I$libo " 986 1019 else if $LINUX then 987 set optimtru90=" $optimtru90 -module $libo " 988 set optim90=" $optim90 -module $libo " 1020 if ( $FC_LINUX == "pgf90" ) then 1021 set optimtru90=" $optimtru90 -module $libo " 1022 set optim90=" $optim90 -module $libo " 1023 else if ( $FC_LINUX == 'g95' ) then 1024 set optimtru90=" $optimtru90 -fmod=$libo " 1025 set optim90=" $optim90 -fmod=$libo " 1026 endif 989 1027 set optim="$optim90" 990 1028 set mod_loc_dir=$libo
Note: See TracChangeset
for help on using the changeset viewer.