Ignore:
Timestamp:
Nov 22, 2016, 12:08:15 PM (8 years ago)
Author:
jaudouard
Message:

Bug fix concerning riceco2 declaration and some cleaning concerning the CO2 clouds scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_ifort

    r1540 r1629  
    66########################################################################
    77set dim="64x48x32"
     8set dim="32"
    89set physique=mars
    910set phys="PHYS=$physique"
     
    4041if ( $? == 0 ) then
    4142   echo "*** NETCDF preset *** GNOME cluster"
    42    setenv NCDFLIB /usr/local/lib
    43    setenv NCDFINC /usr/local/include
     43   setenv NCDFLIB /usr/lib64
     44   setenv NCDFINC /usr/include
    4445endif
    4546hostname | grep 'ciclad' > /dev/null
     
    5556   setenv NCDFINC /smplocal/pub/NetCDF/4.1.3/seq/include
    5657endif
     58#### LATMOS
     59hostname | grep 'latmos.ipsl.fr' > /dev/null
     60if ( $? == 0 ) then
     61   echo "*** NETCDF preset *** LATMOS"
     62   setenv NCDFLIB /net/nfs/exoclim/audouard/GCM_MARS/netcdf-4.0.1/lib
     63   setenv NCDFINC /net/nfs/exoclim/audouard/GCM_MARS/netcdf-4.0.1/include
     64endif
     65
     66
     67    setenv NCDFLIB /opt/netcdf43/ifort/lib
     68    setenv NCDFINC /opt/netcdf43/ifort/include
     69
     70
    5771### end NetCDF presets
    5872
     
    189203if $CRAY then
    190204   set optim90="-Wp'-P' -DCRAY "'-p$(LIBO) -eiv '
    191    set oplink="-Wl'-DSTACK=128 -f indef' -L$NCDFLIB -lnetcdf "
     205   set oplink="-Wl'-DSTACK=128 -f indef' -L$NCDFLIB -lnetcdff "
    192206   set mod_loc_dir=" "
    193207   set mod_suffix=" "
     
    195209   set optim90=" -fast"
    196210   set optimtru90=" -fast -free"
    197    set opt_link="-L$NCDFLIB -lnetcdf"
     211   set opt_link="-L$NCDFLIB -lnetcdff"
    198212   set mod_loc_dir=$localdir
    199213   set mod_suffix=mod
     
    420434        else if $LINUX then
    421435           ## for ifort
    422              set optim=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug"
    423              set optim90=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug"
    424              set optimtru90=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug"
     436             set optim=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug -DNC_DOUBLE -real-size 64 "
     437             set optim90=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug -DNC_DOUBLE -real-size 64  "
     438             set optimtru90=" -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check all -debug -DNC_DOUBLE -real-size 64  "
    425439        else
    426440           echo "pas d option debug predefinie pour cette machine"
     
    721735   set f77=ifort
    722736   set f90=ifort
    723    set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdf "
     737   set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdff "
    724738else if $SUN then
    725739   set f77=f90
     
    773787else if $LINUX then
    774788# Ehouarn : adapt to gfortran
    775  set optim="$optim -I${libo} $cpp_def"
    776  set optim90="$optim90 -I${libo} $cpp_def"
    777  set optimtru90="$optimtru90 -I${libo} $cpp_def"
     789 set optim="$optim -I${libo} $cpp_def  -DNC_DOUBLE -real-size 64"
     790 set optim90="$optim90 -I${libo} $cpp_def -DNC_DOUBLE -real-size 64 "
     791 set optimtru90="$optimtru90 -I${libo} $cpp_def  -DNC_DOUBLE -real-size 64"
    778792# Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above)
    779793# set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.