Changeset 1296 for LMDZ4


Ignore:
Timestamp:
Jan 14, 2010, 4:43:56 PM (15 years ago)
Author:
Laurent Fairhead
Message:

Inclusion de gfortran comme compilateur valide pour l'installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4V5.0-dev/makegcm

    r1279 r1296  
    2929
    3030set FC_LINUX=g95
     31set FC_LINUX=gfortran
    3132#set FC_LINUX=pgf90
    3233if ( $FC_LINUX == g95 ) then
    3334   set OPT_LINUX="-O3"
    34 else
     35   set OPT_LINUX="-O3"
     36else 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 "
     40else
    3541   # pgf90 options
    3642   set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"
     
    4551#setenv LIBOGCM $LMDGCM/libo
    4652set INCALIB=../INCA3/config/lib
    47 #set LMDGCM="`pwd`"
    48 #setenv LIBOGCM $LMDGCM/libo
     53set LMDGCM="`pwd`"
     54setenv LIBOGCM $LMDGCM/libo
    4955#set LMDGCM=/d4/fairhead/V4/
    5056#setenv LIBOGCM $LMDGCM/libo
     
    5561#setenv IOIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
    5662#setenv MODIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
     63#setenv IOIPSLDIR /d4/fairhead/gfortran/ioispl-v2_1_9
     64#setenv MODIPSLDIR /d4/fairhead/gfortran/ioispl-v2_1_9
     65#setenv NCDFINC /d4/fairhead/gfortran/netcdf-4.0.1/include
     66#setenv NCDFLIB /d4/fairhead/gfortran/netcdf-4.0.1/lib
     67
    5768
    5869
     
    259270else if $LINUX then
    260271#################
    261    if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 ) then
     272   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
    262273     set optim=" $OPT_LINUX "
    263274     set optim90=" $OPT_LINUX "
     
    829840       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    830841     endif
    831    else if ($FC_LINUX == 'g95') then
     842   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    832843     if ( $io == "ioipsl" ) then
    833844       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     
    10081019   set optimtru90=" $optimtru90 -fmod=$libo  "
    10091020   set optim90=" $optim90 -fmod=$libo  "
     1021 else if ( $FC_LINUX == 'gfortran' ) then
     1022   set optimtru90=" $optimtru90 -M $libo  "
     1023   set optim90=" $optim90 -M $libo  "
    10101024 endif
    10111025 set optim="$optim90"
Note: See TracChangeset for help on using the changeset viewer.