Changeset 1492 for LMDZ5/trunk/makegcm


Ignore:
Timestamp:
Mar 8, 2011, 9:10:25 AM (14 years ago)
Author:
Laurent Fairhead
Message:

Merge of development branch LMDZ5V2.0-dev r1455:r1491 into the trunk.
Validation made locally: restart files are strictly equal between the HEAD of the trunk
and r1491 of LMDZ5V2.0-dev


Synchro de la branche de développement LMDZ5V2.0-dev r1455:r1491 et de la trunk
Validation faite en local: les fichiers restart sont équivalents entre la HEAD de la trunk
et la révision r1491 de LMDZ5V2.0-dev

Location:
LMDZ5/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk

  • LMDZ5/trunk/makegcm

    r1403 r1492  
    2323set OPTIMI='-C debug -eC '
    2424set OPTIMI=' -ftrace '
    25 set OPT_LINUX='-O3'
    26 set OPT_LINUX="-i4 -r8 -O3"
     25set OPT_LINUX="-O3 -fdefault-real-8"
     26set OPT_LINUX="-O3 -fdefault-real-8"
    2727set io=ioipsl
    2828set cosp=false
    2929
    30 set FC_LINUX=g95
    3130set FC_LINUX=gfortran
    32 #set FC_LINUX=pgf90
    33 if ( $FC_LINUX == g95 ) then
    34    set OPT_LINUX="-O3"
    35    set OPT_LINUX="-O3"
     31set FC_LINUX=gfortran
     32#set FC_LINUX=gfortran
     33if ( $FC_LINUX == gfortran ) then
     34   set OPT_LINUX="-O3 -fdefault-real-8"
     35   set OPT_LINUX="-O3 -fdefault-real-8"
    3636else if ( $FC_LINUX == gfortran ) then
    37    set OPT_LINUX="-fdefault-real-8 -O3"
    38 #   set OPT_LINUX="-O3 -fno-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"
    4040else
    4141   # pgf90 options
    42    set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"
     42   set OPT_LINUX="-O3 -fdefault-real-8"
    4343endif
    4444
     
    5353#
    5454#
    55 setenv IOIPSLDIR /d4/fairhead/gfortran/ioipsl_v2_1_9
    56 setenv MODIPSLDIR /d4/fairhead/gfortran/ioipsl_v2_1_9
    57 setenv NCDFINC /d4/fairhead/gfortran_4.4/netcdf-4.1.1/include
    58 setenv NCDFLIB /d4/fairhead/gfortran_4.4/netcdf-4.1.1/lib
     55setenv IOIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib
     56setenv MODIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib
     57setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include
     58setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib
    5959
    6060
     
    108108  if ( ! $?NCDFLIB ) then
    109109    echo You must initialize the variable NCDFLIB in your environnement
    110     echo for instance: "setenv NCDFLIB /usr/myself/netcdf" in .cshrc
     110    echo for instance: "setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib
    111111    exit
    112112  endif
    113113  if ( ! $?NCDFINC ) then
    114114    echo You must initialize the variable NCDFINC in your environnement
    115     echo for instance: "setenv NCDFINC /usr/myself/netcdf" in .cshrc
     115    echo for instance: "setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include
    116116    exit
    117117  endif
     
    263263else if $LINUX then
    264264#################
    265    if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
     265   if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then
    266266     set optim=" $OPT_LINUX "
    267267     set optim90=" $OPT_LINUX "
     
    516516             set optim90="$optim90"" -g -C -Mbounds "
    517517             set optimtru90="$optimtru90"" -g -C -Mbounds "
    518            else if ( $FC_LINUX == 'g95' ) then
     518           else if ( $FC_LINUX == 'gfortran' ) then
    519519             set optim="$optim"" -g -fbounds-check "
    520520             set optim90="$optim90"" -g -fbounds-check "
     
    572572if ( "$veget" == 'true' ) then
    573573   set cppflags="$cppflags -DCPP_VEGET"
    574 #   set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel"
     574#   set link_veget=" -lsechiba -lparameters -lstomate  "
    575575   set link_veget=" -lsechiba -lparameters -lstomate"
    576576   if ( $XNEC || $X8BRODIE || $X6NEC) then
     
    833833       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    834834     endif
    835    else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
     835   else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then
    836836     if ( $io == "ioipsl" ) then
    837837       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     
    10091009   set optimtru90=" $optimtru90 -module $libo "
    10101010   set optim90=" $optim90 -module $libo "
    1011  else if ( $FC_LINUX == 'g95' ) then
    1012    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  "
    10141014 else if ( $FC_LINUX == 'gfortran' ) then
    10151015   set optimtru90=" $optimtru90 -M $libo  "
Note: See TracChangeset for help on using the changeset viewer.