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/libf/dyn3d/leapfrog.F

    r1189 r1302  
    2020     &                       ok_dynzon,periodav,ok_dyn_ave,iecri,
    2121     &                       ok_dyn_ins,output_grads_dyn
     22      use exner_hyb_m, only: exner_hyb
     23      use exner_milieu_m, only: exner_milieu
    2224      use cpdet_mod, only: cpdet,tpot2t,t2tpot
    2325      use sponge_mod, only: callsponge,mode_sponge,sponge
     
    217219      endif
    218220
    219       itaufin   = nday*day_step
     221      if (nday>=0) then
     222         itaufin   = nday*day_step
     223      else
     224         ! to run a given (-nday) number of dynamical steps
     225         itaufin   = -nday
     226      endif
    220227      if (less1day) then
    221228c MODIF VENUS: to run less than one day:
     
    262269      CALL pression ( ip1jmp1, ap, bp, ps, p       )
    263270      if (pressure_exner) then
    264         CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
     271        CALL exner_hyb( ip1jmp1, ps, p, pks, pk, pkf )
    265272      else
    266         CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
     273        CALL exner_milieu( ip1jmp1, ps, p, pks, pk, pkf )
    267274      endif
    268275
     
    476483         CALL pression (  ip1jmp1, ap, bp, ps,  p      )
    477484         if (pressure_exner) then
    478            CALL exner_hyb(  ip1jmp1, ps, p,alpha,beta,pks, pk, pkf )
     485           CALL exner_hyb(  ip1jmp1, ps, p,pks, pk, pkf )
    479486         else
    480            CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
     487           CALL exner_milieu( ip1jmp1, ps, p, pks, pk, pkf )
    481488         endif
     489
     490! Compute geopotential (physics might need it)
     491         CALL geopot  ( ip1jmp1, teta  , pk , pks,  phis  , phi   )
    482492
    483493           jD_cur = jD_ref + day_ini - day_ref +                        &
     
    551561          CALL massdair(p,masse)
    552562          if (pressure_exner) then
    553             CALL exner_hyb(ip1jmp1,ps,p,alpha,beta,pks,pk,pkf)
     563            CALL exner_hyb( ip1jmp1, ps, p, pks, pk, pkf )
    554564          else
    555             CALL exner_milieu(ip1jmp1,ps,p,beta,pks,pk,pkf)
     565            CALL exner_milieu( ip1jmp1, ps, p, pks, pk, pkf )
    556566          endif
    557567         
     
    604614        CALL pression ( ip1jmp1, ap, bp, ps, p                  )
    605615        if (pressure_exner) then
    606           CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
     616          CALL exner_hyb( ip1jmp1, ps, p, pks, pk, pkf )
    607617        else
    608           CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
     618          CALL exner_milieu( ip1jmp1, ps, p, pks, pk, pkf )
    609619        endif
    610620        CALL massdair(p,masse)
Note: See TracChangeset for help on using the changeset viewer.