Ignore:
Timestamp:
Sep 1, 2016, 3:15:36 PM (8 years ago)
Author:
emillour
Message:

Dynamical core and miscellaneous additions to be fully compatible with LMDZ5 and the Earth physics package phylmd (at this point one can compile phylmd, from LMDZ5 revision 2602, with LMDZ.COMMON).

  • dyn3d and dyn3dpar:
  • removed ce0l.F90
  • dyn3d_common:
  • added conf_dat_m.F90 (for Earth model)
  • modified diagedyn.F: hard coded constants for Earth and error message for other planets
  • misc:
  • added slopes_m.F90 and regr1_conserv_m.F90 used by Earth model

EM

Location:
trunk/LMDZ.COMMON/libf/dyn3d_common
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d_common/diagedyn.F

    r1401 r1592  
    5353c======================================================================
    5454 
     55      USE control_mod, ONLY : planet_type
    5556      USE cpdet_mod, ONLY: cpdet,tpot2t
    5657
     
    6667!#include "../phylmd/YOETHF.h"
    6768!#endif
     69! Ehouarn: for now set these parameters to what is in Earth physics...
     70!          (cf ../phylmd/suphel.h)
     71!          this should be generalized...
     72      REAL,PARAMETER :: RCPD=
     73     &               3.5*(1000.*(6.0221367E+23*1.380658E-23)/28.9644)
     74      REAL,PARAMETER :: RCPV=
     75     &               4.*(1000.*(6.0221367E+23*1.380658E-23)/18.0153)
     76      REAL,PARAMETER :: RCS=RCPV
     77      REAL,PARAMETER :: RCW=RCPV
     78      REAL,PARAMETER :: RLSTT=2.8345E+6
     79      REAL,PARAMETER :: RLVTT=2.5008E+6
     80!
    6881C
    6982      INTEGER imjmp1
     
    142155
    143156
    144 #ifdef CPP_EARTH
     157!#ifdef CPP_EARTH
     158      IF (planet_type=="earth") THEN
     159     
    145160c======================================================================
    146161C     Compute Kinetic enrgy
     
    319334      ec_pre (idiag)    = ec_tot
    320335C
    321 #else
    322       write(lunout,*)'diagedyn: Needs Earth physics to function'
    323 #endif
     336!#else
     337      ELSE
     338      write(lunout,*)'diagedyn: set to function with Earth parameters'
     339      ENDIF ! of if (planet_type=="earth")
     340!#endif
    324341! #endif of #ifdef CPP_EARTH
    325342      RETURN
Note: See TracChangeset for help on using the changeset viewer.