Changeset 676


Ignore:
Timestamp:
Dec 1, 2005, 12:32:11 PM (19 years ago)
Author:
Laurent Fairhead
Message:

Pour compatibilité g95
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/makegcm

    r672 r676  
    2323set OPTIMI='-C debug -eC '
    2424set OPTIMI=' -ftrace '
     25set OPT_LINUX='-O3'
    2526set io=ioipsl
     27
     28set FC_LINUX=g95
    2629
    2730########################################################################
     
    3538#setenv LIBOGCM $LMDGCM/libo
    3639#
     40#setenv IOIPSLDIR /u/fairhead/modipsl_g95/lib
     41#setenv MODIPSLDIR /u/fairhead/modipsl_g95/lib
     42#setenv NCDFINC "/u/fairhead/netcdf-3.6.0-p1/linux-g95/include/"
     43#setenv NCDFLIB "/u/fairhead/netcdf-3.6.0-p1/linux-g95/lib/"
    3744
    3845setenv localdir "`pwd`"
     
    221228else if $LINUX then
    222229#################
    223    set optim="-O0 "
    224    set optim90="-O0 "
     230   if ( $FC_LINUX == "pgf90" ) then
     231     set optim="-fast "
     232     set optim90=" -fast "
    225233#   set optimtru90=" -fast -c -Mfree -module $MODIPSLDIR "
    226    set optimtru90="-O0 -c -Mfree "
    227    set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR -lsechiba -lparameters -lstomate -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/"
     234     set optimtru90=" -fast -c -Mfree "
     235   else if ( $FC_LINUX == 'g95' ) then
     236     set optim=" $OPT_LINUX -fno-second-underscore -ffixed-form -fstatic "
     237     set optim90=" $OPT_LINUX -fno-second-underscore -ffixed-form -fstatic "
     238     set optimtru90=" $OPT_LINUX -fno-second-underscore -ffree-form -fstatic "
     239   else
     240     echo 'compilateur linux non reconnu'
     241     exit
     242   endif
    228243   set mod_loc_dir=$MODIPSLDIR
    229244   set mod_suffix=mod
     
    460475           set optim90="$optim90"" -G1 "
    461476        else if $LINUX then
    462            set optim="$optim"" -g -Mbounds -C "
    463            set optim90="$optim90"" -g -Mbounds -C "
     477           if ( $FC_LINUX == "pgf90" ) then
     478             set optim="$optim"" -g -C -Mbounds "
     479             set optim90="$optim90"" -g -C -Mbounds "
     480             set optimtru90="$optimtru90"" -g -C -Mbounds "
     481           else if ( $FC_LINUX == 'g95' ) then
     482             set optim="$optim"" -g -fbounds-check "
     483             set optim90="$optim90"" -g -fbounds-check "
     484             set optimtru90="$optimtru90"" -g -fbounds-check "
     485           else
     486             echo 'compilateur linux non reconnu'
     487             exit
     488           endif
    464489        else
    465490           echo pas d option debug predefinie pour cette machine
     
    848873else if $LINUX then
    849874#################
    850    set f77=pgf90
    851    set f90=pgf90
    852    set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/"
     875#   set f77=pgf90
     876#   set f90=pgf90
     877   set f77=$FC_LINUX
     878   set f90=$FC_LINUX
     879   if ( $FC_LINUX == 'pgf90' ) then
     880   set opt_link=" -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/"
     881   else if ($FC_LINUX == 'g95') then
     882     set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     883   else
     884     set opt_link=" "
     885   endif
    853886#################
    854887else if $SUN then
     
    9851018 set optimtru90=" $optimtru90 -I$libo "
    9861019else if $LINUX then
    987  set optimtru90=" $optimtru90 -module $libo "
    988  set optim90=" $optim90 -module $libo "
     1020 if ( $FC_LINUX == "pgf90" ) then
     1021   set optimtru90=" $optimtru90 -module $libo "
     1022   set optim90=" $optim90 -module $libo "
     1023 else if ( $FC_LINUX == 'g95' ) then
     1024   set optimtru90=" $optimtru90 -fmod=$libo  "
     1025   set optim90=" $optim90 -fmod=$libo  "
     1026 endif
    9891027 set optim="$optim90"
    9901028 set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.