Ignore:
Timestamp:
Aug 22, 2013, 4:02:07 PM (11 years ago)
Author:
emillour
Message:

Common dynamics: (and collateral adaptations in Venus physics)
Improved cpdet routines in and additional sponge mode:

  • Additionnal sponge mode (trigered with "callsponge" flag), in line with the one used in the Generic and Martian GCM. This sponge is called whenever there is a dissipation step.
  • Improvement of the cpdet routines : created routines tpot2t_glo_p and t2tpot_glo_p which handle fields on the whole dynamics (scaler) grid, which are more efficient than calling tpot2t_p or t2tpot_p with slabs of data (generated use of intermediate copies of these chunks of data at every call)
  • Turned cpdet.F into a module cpdet_mod.F90 (and correspondingly adapted all routines in the Venus physics).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/leapfrog.F

    r1012 r1017  
    1616      USE write_field
    1717      USE control_mod
     18      use cpdet_mod, only: cpdet,tpot2t,t2tpot
     19      use sponge_mod, only: callsponge,mode_sponge,sponge
    1820      IMPLICIT NONE
    1921
     
    197199      ! for CP(T)
    198200      real :: dtec
    199       real,external :: cpdet
    200201      real :: ztetaec(ip1jmp1,llm)
    201202
    202203c dummy: sinon cette routine n'est jamais compilee...
    203204      if(1.eq.0) then
     205#ifdef CPP_PHYS
    204206        CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
     207#endif
    205208      endif
    206209
     
    562565      IF(apdiss) THEN
    563566
     567        ! sponge layer
     568        if (callsponge) then
     569          CALL sponge(ucov,vcov,teta,ps,dtdiss,mode_sponge)
     570        endif
    564571
    565572c   calcul de l'energie cinetique avant dissipation
Note: See TracChangeset for help on using the changeset viewer.