Changeset 1492 for LMDZ5/trunk/makegcm
- Timestamp:
- Mar 8, 2011, 9:10:25 AM (14 years ago)
- Location:
- LMDZ5/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk
- Property svn:mergeinfo changed
/LMDZ5/branches/LMDZ5V2.0-dev (added) merged: 1456-1457,1460-1463,1466-1467,1470,1472-1475,1478,1480,1482,1484-1491
- Property svn:mergeinfo changed
-
LMDZ5/trunk/makegcm
r1403 r1492 23 23 set OPTIMI='-C debug -eC ' 24 24 set OPTIMI=' -ftrace ' 25 set OPT_LINUX= '-O3'26 set OPT_LINUX="- i4 -r8 -O3"25 set OPT_LINUX="-O3 -fdefault-real-8" 26 set OPT_LINUX="-O3 -fdefault-real-8" 27 27 set io=ioipsl 28 28 set cosp=false 29 29 30 set FC_LINUX=g9531 30 set FC_LINUX=gfortran 32 #set FC_LINUX=pgf90 33 if ( $FC_LINUX == g95 ) then 34 set OPT_LINUX="-O3" 35 set OPT_LINUX="-O3" 31 set FC_LINUX=gfortran 32 #set FC_LINUX=gfortran 33 if ( $FC_LINUX == gfortran ) then 34 set OPT_LINUX="-O3 -fdefault-real-8" 35 set OPT_LINUX="-O3 -fdefault-real-8" 36 36 else if ( $FC_LINUX == gfortran ) then 37 set OPT_LINUX="- fdefault-real-8 -O3"38 # set OPT_LINUX="-O3 -f no-second-underscore"39 set OPT_LINUX="-O3 "37 set OPT_LINUX="-O3 -fdefault-real-8" 38 # set OPT_LINUX="-O3 -fdefault-real-8" 39 set OPT_LINUX="-O3 -fdefault-real-8" 40 40 else 41 41 # pgf90 options 42 set OPT_LINUX="- i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"42 set OPT_LINUX="-O3 -fdefault-real-8" 43 43 endif 44 44 … … 53 53 # 54 54 # 55 setenv IOIPSLDIR /d4/fairhead/ gfortran/ioipsl_v2_1_956 setenv MODIPSLDIR /d4/fairhead/ gfortran/ioipsl_v2_1_957 setenv NCDFINC /d4/fairhead/ gfortran_4.4/netcdf-4.1.1/include58 setenv NCDFLIB /d4/fairhead/ gfortran_4.4/netcdf-4.1.1/lib55 setenv IOIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib 56 setenv MODIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib 57 setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include 58 setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib 59 59 60 60 … … 108 108 if ( ! $?NCDFLIB ) then 109 109 echo You must initialize the variable NCDFLIB in your environnement 110 echo for instance: "setenv NCDFLIB / usr/myself/netcdf" in .cshrc110 echo for instance: "setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib 111 111 exit 112 112 endif 113 113 if ( ! $?NCDFINC ) then 114 114 echo You must initialize the variable NCDFINC in your environnement 115 echo for instance: "setenv NCDFINC / usr/myself/netcdf" in .cshrc115 echo for instance: "setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include 116 116 exit 117 117 endif … … 263 263 else if $LINUX then 264 264 ################# 265 if ( $FC_LINUX == pgf90 || $FC_LINUX == g 95|| $FC_LINUX == gfortran ) then265 if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then 266 266 set optim=" $OPT_LINUX " 267 267 set optim90=" $OPT_LINUX " … … 516 516 set optim90="$optim90"" -g -C -Mbounds " 517 517 set optimtru90="$optimtru90"" -g -C -Mbounds " 518 else if ( $FC_LINUX == 'g 95' ) then518 else if ( $FC_LINUX == 'gfortran' ) then 519 519 set optim="$optim"" -g -fbounds-check " 520 520 set optim90="$optim90"" -g -fbounds-check " … … 572 572 if ( "$veget" == 'true' ) then 573 573 set cppflags="$cppflags -DCPP_VEGET" 574 # set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel"574 # set link_veget=" -lsechiba -lparameters -lstomate " 575 575 set link_veget=" -lsechiba -lparameters -lstomate" 576 576 if ( $XNEC || $X8BRODIE || $X6NEC) then … … 833 833 set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf " 834 834 endif 835 else if ($FC_LINUX == 'g 95' || $FC_LINUX == 'gfortran' ) then835 else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then 836 836 if ( $io == "ioipsl" ) then 837 837 set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf " … … 1009 1009 set optimtru90=" $optimtru90 -module $libo " 1010 1010 set optim90=" $optim90 -module $libo " 1011 else if ( $FC_LINUX == 'g 95' ) then1012 set optimtru90=" $optimtru90 - fmod=$libo "1013 set optim90=" $optim90 - fmod=$libo "1011 else if ( $FC_LINUX == 'gfortran' ) then 1012 set optimtru90=" $optimtru90 -I$libo " 1013 set optim90=" $optim90 -I$libo " 1014 1014 else if ( $FC_LINUX == 'gfortran' ) then 1015 1015 set optimtru90=" $optimtru90 -M $libo "
Note: See TracChangeset
for help on using the changeset viewer.