Changeset 1297


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

Inclusion de gfortan comme compilateur valide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/makegcm

    r1279 r1297  
    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"
     
    4248
    4349###### VERSION LMDZ.4
    44 #set LMDGCM=/workdir/p86cozic/INCA_dev/LMDZ4
    45 #setenv LIBOGCM $LMDGCM/libo
    4650set INCALIB=../INCA3/config/lib
    4751#set LMDGCM="`pwd`"
    48 #setenv LIBOGCM $LMDGCM/libo
    49 #set LMDGCM=/d4/fairhead/V4/
    5052#setenv LIBOGCM $LMDGCM/libo
    5153#
     
    5557#setenv IOIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
    5658#setenv MODIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
     59#setenv IOIPSLDIR /d4/fairhead/gfortran/ioispl-v2_1_9
     60#setenv MODIPSLDIR /d4/fairhead/gfortran/ioispl-v2_1_9
     61#setenv NCDFINC /d4/fairhead/gfortran/netcdf-4.0.1/include
     62#setenv NCDFLIB /d4/fairhead/gfortran/netcdf-4.0.1/lib
     63
    5764
    5865
     
    259266else if $LINUX then
    260267#################
    261    if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 ) then
     268   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
    262269     set optim=" $OPT_LINUX "
    263270     set optim90=" $OPT_LINUX "
     
    829836       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    830837     endif
    831    else if ($FC_LINUX == 'g95') then
     838   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    832839     if ( $io == "ioipsl" ) then
    833840       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     
    10081015   set optimtru90=" $optimtru90 -fmod=$libo  "
    10091016   set optim90=" $optim90 -fmod=$libo  "
     1017 else if ( $FC_LINUX == 'gfortran' ) then
     1018   set optimtru90=" $optimtru90 -M $libo  "
     1019   set optim90=" $optim90 -M $libo  "
    10101020 endif
    10111021 set optim="$optim90"
Note: See TracChangeset for help on using the changeset viewer.