Changeset 1875 for LMDZ5/trunk/makegcm


Ignore:
Timestamp:
Sep 20, 2013, 4:31:12 PM (11 years ago)
Author:
Laurent Fairhead
Message:

Même si c'est "interdit", réinclusion de g95 dans makegcm pour le 1D en local


Even if frowned upon, g95 is introduced back in the compilation choice for local 1D jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makegcm

    r1865 r1875  
    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
     
    3029
    3130set FC_LINUX=gfortran
    32 set FC_LINUX=gfortran
    33 #set FC_LINUX=gfortran
    34 if ( $FC_LINUX == gfortran ) then
    35   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
     31
     32if ( $FC_LINUX == g95 ) then
     33  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    3634else if ( $FC_LINUX == gfortran ) then
    37   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    38 #   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    3935  set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
    4036else
    4137# pgf90 options
    42   set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE"
     38  set OPT_LINUX="-O3 -i4 -r8 -DNC_DOUBLE"
    4339endif
    4440
     
    5551setenv IOIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib
    5652setenv MODIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib
    57 setenv NCDFINC /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/include
    58 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
    5955
    6056
     
    108104  if ( ! $?NCDFLIB ) then
    109105    echo You must initialize the variable NCDFLIB in your environnement
    110     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
    111107    exit
    112108  endif
    113109  if ( ! $?NCDFINC ) then
    114110    echo You must initialize the variable NCDFINC in your environnement
    115     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
    116112    exit
    117113  endif
     
    263259else if $LINUX then
    264260#################
    265    if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then
     261   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $FC_LINUX == gfortran ) then
    266262     set optim=" $OPT_LINUX "
    267263     set optim90=" $OPT_LINUX "
     
    849845       set opt_link="$opt_link  -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    850846     endif
    851    else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then
     847   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    852848     if ( $io == "ioipsl" ) then
    853849       set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB  -lnetcdf -lioipsl  -lnetcdf "
     
    10231019   set optimtru90=" $optimtru90 -module $libo "
    10241020   set optim90=" $optim90 -module $libo "
    1025  else if ( $FC_LINUX == 'gfortran' ) then
    1026    set optimtru90=" $optimtru90 -I$libo  "
    1027    set optim90=" $optim90 -I$libo  "
    1028  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
    10291025   set optimtru90=" $optimtru90 -M $libo  "
    10301026   set optim90=" $optim90 -M $libo  "
Note: See TracChangeset for help on using the changeset viewer.