Ignore:
Timestamp:
Nov 29, 2013, 9:40:25 AM (11 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r1860:1909 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/makegcm

    • Property copyright set to
      Name of program: LMDZ
      Creation date: 1984
      Version: LMDZ5
      License: CeCILL version 2
      Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
      See the license file in the root directory
    r1864 r1910  
    2424set OPTIMI=' -ftrace '
    2525set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    26 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    2726set io=ioipsl
    2827set cosp=false
     28set sisvat=false
    2929
    3030set 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 -DNC_DOUBLE"
     31
     32if ( $FC_LINUX == g95 ) then
     33  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    3534else if ( $FC_LINUX == gfortran ) then
    36   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    37 #   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    3835  set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    3936else
    4037# pgf90 options
    41   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
     38  set OPT_LINUX="-O3 -i4 -r8 -DNC_DOUBLE"
    4239endif
    4340
     
    5451setenv IOIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib
    5552setenv MODIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib
    56 setenv NCDFINC /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/include
    57 setenv NCDFLIB /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/lib
     53setenv NCDFINC /d1/mpllmd/LMDZtesting/netcdf-4.0.1/include
     54setenv NCDFLIB /d1/mpllmd/LMDZtesting/netcdf-4.0.1/lib
    5855
    5956
     
    107104  if ( ! $?NCDFLIB ) then
    108105    echo You must initialize the variable NCDFLIB in your environnement
    109     echo for instance: "setenv NCDFLIB /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/lib
     106    echo for instance: "setenv NCDFLIB /d1/mpllmd/LMDZtesting/netcdf-4.0.1/lib
    110107    exit
    111108  endif
    112109  if ( ! $?NCDFINC ) then
    113110    echo You must initialize the variable NCDFINC in your environnement
    114     echo for instance: "setenv NCDFINC /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/include
     111    echo for instance: "setenv NCDFINC /d1/mpllmd/LMDZtesting/netcdf-4.0.1/include
    115112    exit
    116113  endif
     
    262259else if $LINUX then
    263260#################
    264    if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then
     261   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
    265262     set optim=" $OPT_LINUX "
    266263     set optim90=" $OPT_LINUX "
     
    490487     case -cosp
    491488        set cosp="$2"; shift ; shift ; goto top
     489
     490     case -sisvat
     491        set sisvat="$2" ; shift ; shift ; goto top
    492492
    493493     case -filtre
     
    519519             set optim90="$optim90"" -g -ffpe-trap=invalid,zero,overflow -fbounds-check -Wall "
    520520             set optimtru90="$optimtru90"" -ffpe-trap=invalid,zero,overflow -g -fbounds-check -Wall "
    521            else if ( $FC_LINUX == 'gfortran' ) then
     521           else if ( $FC_LINUX == 'g95' ) then
    522522             set optim="$optim"" -g -fbounds-check -freal=nan -ftrace=full -Wall "
    523523             set optim90="$optim90"" -g -fbounds-check -freal=nan -ftrace=full -Wall "
     
    564564   endif
    565565   set opt_link="$lcosp $opt_link"
     566endif
     567
     568if ( "$sisvat" == 'true' ) then
     569    set cppflags="$cppflags -DCPP_SISVAT"
    566570endif
    567571
     
    841845       set opt_link="$opt_link  -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    842846     endif
    843    else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then
     847   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    844848     if ( $io == "ioipsl" ) then
    845849       set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB  -lnetcdf -lioipsl  -lnetcdf "
     
    10151019   set optimtru90=" $optimtru90 -module $libo "
    10161020   set optim90=" $optim90 -module $libo "
    1017  else if ( $FC_LINUX == 'gfortran' ) then
    1018    set optimtru90=" $optimtru90 -I$libo  "
    1019    set optim90=" $optim90 -I$libo  "
    1020  else if ( $FC_LINUX == 'gfortran' ) then
     1021else if ( $FC_LINUX == 'g95' ) then
     1022   set optimtru90=" $optimtru90 -fmod=$libo  "
     1023   set optim90=" $optim90 -fmod=$libo  "
     1024else if ( $FC_LINUX == 'gfortran' ) then
    10211025   set optimtru90=" $optimtru90 -M $libo  "
    10221026   set optim90=" $optim90 -M $libo  "
Note: See TracChangeset for help on using the changeset viewer.