Changeset 1644 for LMDZ5


Ignore:
Timestamp:
Jul 30, 2012, 12:58:46 PM (12 years ago)
Author:
idelkadi
Message:

Corrections dans makegcm et create_make_gcm pour pouvoir compiler avec Cosp

Location:
LMDZ5/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/create_make_gcm

    r1492 r1644  
    6868echo 'L_BIBIO    = -lbibio'
    6969echo 'L_ADJNT    ='
    70 echo 'L_COSP     = -lcosp'
     70#echo 'L_COSP     = -lcosp'
    7171
    7272echo
     
    108108echo 'adjnt : $(LIBO)/libadjnt.a'
    109109echo
    110 echo 'cosp : $(LIBO)/libcosp.a'
     110#echo 'cosp : $(LIBO)/libcosp.a'
    111111echo
    112112echo '$(FILTRE)3d : $(LIBO)/lib$(FILTRE).a'
  • LMDZ5/trunk/makegcm

    r1615 r1644  
    2323set OPTIMI='-C debug -eC '
    2424set OPTIMI=' -ftrace '
    25 set OPT_LINUX="-O3 -fdefault-real-8"
    26 set OPT_LINUX="-O3 -fdefault-real-8"
     25set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
     26set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    2727set io=ioipsl
    2828set cosp=false
    2929
    3030set FC_LINUX=g95
    31 set FC_LINUX=gfortran
    32 #set FC_LINUX=pgf90
     31set FC_LINUX=g95
     32#set FC_LINUX=g95
    3333if ( $FC_LINUX == g95 ) then
    34   set OPT_LINUX="-O3"
     34  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    3535else if ( $FC_LINUX == gfortran ) then
    36   set OPT_LINUX="-fdefault-real-8 -O3"
    37 #   set OPT_LINUX="-O3 -fno-second-underscore"
    38   set OPT_LINUX="-O3 "
     36  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
     37#   set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
     38  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    3939else
    4040# pgf90 options
    41   set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"
     41  set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE"
    4242endif
    4343
     
    5454setenv IOIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib
    5555setenv MODIPSLDIR /d4/fairhead/LMDZ20100928.trunk/modipsl/lib
    56 setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include
    57 setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib
     56setenv NCDFINC /tmp15/idelkadi/Cosp3D/LMDZ20120724.trunk/netcdf-4.0.1/include
     57setenv NCDFLIB /tmp15/idelkadi/Cosp3D/LMDZ20120724.trunk/netcdf-4.0.1/lib
    5858
    5959
     
    107107  if ( ! $?NCDFLIB ) then
    108108    echo You must initialize the variable NCDFLIB in your environnement
    109     echo for instance: "setenv NCDFLIB /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/lib
     109    echo for instance: "setenv NCDFLIB /tmp15/idelkadi/Cosp3D/LMDZ20120724.trunk/netcdf-4.0.1/lib
    110110    exit
    111111  endif
    112112  if ( ! $?NCDFINC ) then
    113113    echo You must initialize the variable NCDFINC in your environnement
    114     echo for instance: "setenv NCDFINC /d4/fairhead/LMDZ20100928.trunk/netcdf-4.0.1/include
     114    echo for instance: "setenv NCDFINC /tmp15/idelkadi/Cosp3D/LMDZ20120724.trunk/netcdf-4.0.1/include
    115115    exit
    116116  endif
     
    189189set opt_link=""
    190190set adjnt=""
    191 set lcosp=""
     191# set lcosp=""
    192192set opt_dep=""
    193193set libchimie=""
     
    563563     set lcosp="-lsxcosp "
    564564   endif
     565   set opt_link="$lcosp $opt_link"
    565566endif
    566567
     
    836837   if ( $FC_LINUX == 'pgf90' ) then
    837838     if ( $io == "ioipsl" ) then
    838        set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lioipsl -lnetcdf "
     839       set opt_link=" $opt_link -L$MODIPSLDIR $link_veget -L$NCDFLIB -lioipsl -lnetcdf "
    839840     else
    840        set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
     841       set opt_link="$opt_link -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
    841842     endif
    842843   else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then
    843844     if ( $io == "ioipsl" ) then
    844        set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     845       set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
    845846     else
    846        set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lnetcdf "
     847       set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lnetcdf "
    847848     endif
    848    else
    849      set opt_link=" "
    850849   endif
    851850#################
     
    10681067FLAG_PARA="$FLAG_PARA"\
    10691068L_ADJNT="$adjnt" \
    1070 L_COSP="$lcosp" \
     1069# L_COSP="$lcosp" \
    10711070L_CHIMIE="$libchimie" \
    10721071LOCAL_DIR="$localdir"  \
     
    10951094FLAG_PARA="$FLAG_PARA"\
    10961095L_ADJNT="$adjnt" \
    1097 L_COSP="$lcosp" \
     1096# L_COSP="$lcosp" \
    10981097L_CHIMIE="$libchimie" \
    10991098LOCAL_DIR="$localdir"  \
Note: See TracChangeset for help on using the changeset viewer.