Changeset 3359


Ignore:
Timestamp:
Jul 4, 2018, 4:48:30 PM (6 years ago)
Author:
idelkadi
Message:

Implementation de la version COSPv2 dans LMDZ.

Location:
LMDZ6/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makegcm

    r2014 r3359  
    3939set io=ioipsl
    4040set cosp=false
     41set cosp2=false
    4142set sisvat=false
    4243
     
    200201set adjnt=""
    201202set lcosp=""
     203set lcosp2=""
    202204set opt_dep=""
    203205set libchimie=""
     
    442444           Pour compiler avec cosp
    443445
     446-cosp2 true|false
     447           Pour compiler avec cosp2
     448
    444449-filtre  filtre
    445450           Pour choisir le filtre en longitude dans les regions polaires.
     
    500505     case -cosp
    501506        set cosp="$2"; shift ; shift ; goto top
     507
     508     case -cosp2
     509        set cosp2="$2"; shift ; shift ; goto top
    502510
    503511     case -sisvat
     
    579587endif
    580588
     589if ( "$cosp2" == 'true' ) then
     590    set cppflags="$cppflags -DCPP_COSP2"
     591    set include="$include"' -I$(LIBF)/cosp2 '
     592    set opt_dep="$opt_dep cosp2"
     593     set lcosp2="-lcosp2 "
     594   if ( $XNEC || $X8BRODIE || $X6NEC) then
     595     set lcosp2="-lsxcosp2 "
     596   endif
     597   set opt_link="$lcosp2 $opt_link"
     598endif
     599
    581600if ( "$sisvat" == 'true' ) then
    582601    set cppflags="$cppflags -DCPP_SISVAT"
     
    10851104L_ADJNT="$adjnt" \
    10861105L_COSP="$lcosp" \
     1106L_COSP2="$lcosp2" \
    10871107L_CHIMIE="$libchimie" \
    10881108LOCAL_DIR="$localdir"  \
     
    11121132L_ADJNT="$adjnt" \
    11131133L_COSP="$lcosp" \
     1134L_COSP2="$lcosp2" \
    11141135L_CHIMIE="$libchimie" \
    11151136LOCAL_DIR="$localdir"  \
  • LMDZ6/trunk/makelmdz

    r3232 r3359  
    2525fcm_path=none
    2626cosp=false
     27cosp2=false
    2728sisvat=false
    2829rrtm=false
     
    116117[-chimie INCA/false]       : with INCA chemistry model or without (default: false)
    117118[-cosp true/false]    : compile with/without cosp package (default: false)
     119[-cosp2 true/false]    : compile with/without cosp2 package (default: false)
    118120[-sisvat true/false]  : compile with/without sisvat package (default: false)
    119121[-rrtm true/false]    : compile with/without rrtm package (default: false)
     
    178180      "-cosp")
    179181          cosp="$2" ; shift ; shift ;;
     182
     183      "-cosp2")
     184          cosp2="$2" ; shift ; shift ;;
    180185     
    181186      "-sisvat")
     
    483488   INCLUDE="$INCLUDE"' -I$(LIBF)/'phy${physique}'/cosp'
    484489fi
     490
     491if [[ "$cosp2" == "true" ]]
     492then
     493   CPP_KEY="$CPP_KEY CPP_COSP2"
     494   src_dirs="$src_dirs phy${physique}/cosp2"
     495   INCLUDE="$INCLUDE"' -I$(LIBF)/'phy${physique}'/cosp2'
     496fi
     497
    485498
    486499if [[ "$sisvat" == "true" ]]
     
    758771L_ADJNT=$adjnt \
    759772L_COSP="$lcosp" \
     773L_COSP2="$lcosp2" \
    760774L_CHIMIE="$libchimie" \
    761775LOCAL_DIR="$localdir"  \
     
    791805L_ADJNT=$adjnt \
    792806L_COSP="$lcosp" \
     807L_COSP2="$lcosp2" \
    793808L_CHIMIE="$libchimie" \
    794809LOCAL_DIR="$localdir"  \
Note: See TracChangeset for help on using the changeset viewer.