Changeset 1499


Ignore:
Timestamp:
Mar 11, 2011, 10:12:58 PM (14 years ago)
Author:
Laurent Fairhead
Message:

makegcm error on merge: g95 lost as a possible compiler


erreur au moment de la synchro: on avait perdu g95 comme compilateur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makegcm

    r1492 r1499  
    2828set cosp=false
    2929
     30set FC_LINUX=g95
    3031set FC_LINUX=gfortran
    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"
     32#set FC_LINUX=pgf90
     33if ( $FC_LINUX == g95 ) then
     34  set OPT_LINUX="-O3"
    3635else if ( $FC_LINUX == gfortran ) then
    37    set OPT_LINUX="-O3 -fdefault-real-8"
    38 #   set OPT_LINUX="-O3 -fdefault-real-8"
    39    set OPT_LINUX="-O3 -fdefault-real-8"
     36  set OPT_LINUX="-fdefault-real-8 -O3"
     37#   set OPT_LINUX="-O3 -fno-second-underscore"
     38  set OPT_LINUX="-O3 "
    4039else
    41    # pgf90 options
    42    set OPT_LINUX="-O3 -fdefault-real-8"
     40# pgf90 options
     41  set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"
    4342endif
    4443
     
    263262else if $LINUX then
    264263#################
    265    if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then
     264   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
    266265     set optim=" $OPT_LINUX "
    267266     set optim90=" $OPT_LINUX "
     
    833832       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    834833     endif
    835    else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then
     834   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    836835     if ( $io == "ioipsl" ) then
    837836       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     
    10091008   set optimtru90=" $optimtru90 -module $libo "
    10101009   set optim90=" $optim90 -module $libo "
    1011  else if ( $FC_LINUX == 'gfortran' ) then
    1012    set optimtru90=" $optimtru90 -I$libo  "
    1013    set optim90=" $optim90 -I$libo  "
     1010 else if ( $FC_LINUX == 'g95' ) then
     1011   set optimtru90=" $optimtru90 -fmod=$libo  "
     1012   set optim90=" $optim90 -fmod=$libo  "
    10141013 else if ( $FC_LINUX == 'gfortran' ) then
    10151014   set optimtru90=" $optimtru90 -M $libo  "
     
    10331032  set link="sxld $opt_link"
    10341033  set link="$f90 -Wl,-hlib_cyclic "
     1034#  set ar=sxar
    10351035else if $X8BRODIE then
    10361036  set link="sxld $opt_link"
    10371037  set link="$f90 -Wl,-hlib_cyclic "
     1038#  set ar=sxar
    10381039endif
    10391040
Note: See TracChangeset for help on using the changeset viewer.