Ignore:
Timestamp:
Jun 26, 2014, 6:07:05 PM (10 years ago)
Author:
emillour
Message:

Common dynamics:
Some updates to keep up with LMDZ5 Earth model evolution
(up to LMDZ5 rev 2070). See file "DOC/chantiers/commit_importants.log"
for detailed list of changes.
Note that the updates of exner* routines change (as expected) results
at numerical roundoff level.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r1300 r1302  
    2323veget=false
    2424sisvat=false
     25rrtm=false
    2526chimie=false
    2627chemistry=false
     
    4041LIBFGCM=$LMDGCM/libf
    4142# path for optional packages, but default set to ".void_dir"
     43RRTM_PATH=$LMDGCM/.void_dir
     44SISVAT_PATH=$LMDGCM/.void_dir
    4245COSP_PATH=$LMDGCM/.void_dir
    4346CHEM_PATH=$LMDGCM/.void_dir
     
    7679[-p PHYS]                  : set of physical parametrizations (in libf/phyPHYS), (default: lmd)
    7780[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug .
    78 [-c false/MPI1/MPI2]       : (Earth) coupling with ocean model : MPI1/MPI2/false (default: false)
     81[-c false/MPI1/OMCT]       : coupling with ocean model : MPI1/OMCT/false (default: false)
    7982[-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)
    8083          false       : no vegetation model
     
    138141          sisvat="$2" ; shift ; shift ;;
    139142
     143      "-rrtm")
     144          rrtm="$2" ; shift ; shift ;;
     145
    140146      "-chimie")
    141147          chimie="$2" ; shift ; shift ;;
     
    250256if [[ "$couple" != "false" ]]
    251257then
    252    CPP_KEY="$CPP_KEY CPP_COUPLE"
    253    INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    254    LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"
     258    if [[ "$couple" == "MPI1" ]]
     259    then
     260        CPP_KEY="$CPP_KEY CPP_COUPLE"
     261        export OASIS_INCDIR=$LMDGCM/../../prism/X64/build/lib/psmile.MPI1
     262        export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib
     263        INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
     264        LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io"
     265    else
     266        CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT"
     267        INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
     268        LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"
     269    fi
    255270fi
    256271
     
    310325then
    311326   CPP_KEY="$CPP_KEY CPP_SISVAT"
    312    sed -e 's/^#src::sisvat/src::sisvat/' bld.cfg > bld.tmp
    313    mv bld.tmp bld.cfg
     327   SISVAT_PATH="$LIBFGCM/%PHYS/sisvat"
     328   #sed -e 's/^#src::sisvat/src::sisvat/' bld.cfg > bld.tmp
     329   #mv bld.tmp bld.cfg
     330fi
     331
     332if [[ "$rrtm" == "true" ]]
     333then
     334   CPP_KEY="$CPP_KEY CPP_RRTM"
     335   RRTM_PATH="$LIBFGCM/%PHYS/rrtm"
     336   #sed -e 's/^#src::rrtm/src::rrtm/' bld.cfg > bld.tmp
     337   #mv bld.tmp bld.cfg
    314338fi
    315339
     
    536560echo "%DYN           $DYN"           >> $config_fcm
    537561echo "%PHYS          phy${physique}" >> $config_fcm
     562echo "%RRTM          $RRTM_PATH"     >> $config_fcm
     563echo "%SISVAT        $SISVAT_PATH"   >> $config_fcm
    538564echo "%COSP          $COSP_PATH"     >> $config_fcm
    539565echo "%CHEM          $CHEM_PATH"     >> $config_fcm
     
    567593
    568594#eventual cleanup for SISVAT
    569 sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp
    570 mv bld.tmp bld.cfg
     595#sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp
     596#mv bld.tmp bld.cfg
     597
     598#eventual cleanup for RRTM
     599#sed -e 's/^src::rrtm/#src::rrtm/' bld.cfg > bld.tmp
     600#mv bld.tmp bld.cfg
    571601
    572602
Note: See TracChangeset for help on using the changeset viewer.