Changeset 1966


Ignore:
Timestamp:
Feb 11, 2014, 11:52:47 AM (10 years ago)
Author:
Laurent Fairhead
Message:

Correction de bug pour le cas Sandu.
Nudge au dessus de 700hpa à prendre en compte.
MPL

--This line, and those below, will be ignored--

M phy1d/1D_decl_cases.h
A phy1d/1D_nudge_sandu_astex.h
M phy1d/lmdz1d.F

Location:
LMDZ5/trunk/libf/phy1d
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phy1d/1D_decl_cases.h

    r1960 r1966  
    196196        parameter (mth_ini_sandu=7)
    197197        parameter (day_ini_sandu=15)  ! 196 = 15 juillet 2006
    198         real dt_sandu
     198        real dt_sandu, tau_sandu
    199199        logical  :: trouve_700=.true.
    200200        parameter (dt_sandu=6.*3600.)   ! forcages donnes ttes les 6 heures par ifa_sandu.txt
    201 !       parameter (tau_sandu=3600.)  ! temps de relaxation u,v,thetal,qt vers profil init et au dessus 700hPa
     201        parameter (tau_sandu=3600.)  ! temps de relaxation u,v,thetal,qt vers profil init et au dessus 700hPa
    202202!!
    203203        real ts_sandu(nt_sandu)
  • LMDZ5/trunk/libf/phy1d/lmdz1d.F

    r1960 r1966  
    133133      real :: pzero=1.e5
    134134      real :: play (llm),zlay (llm),sig_s(llm),plev(llm+1)
     135      real :: playd(llm),zlayd(llm),ap_amma(llm+1),bp_amma(llm+1),poub
    135136
    136137!---------------------------------------------------------------------
     
    154155      REAL, ALLOCATABLE, DIMENSION(:,:):: dq_dyn
    155156      REAL, ALLOCATABLE, DIMENSION(:,:):: d_q_adv
     157      REAL, ALLOCATABLE, DIMENSION(:):: d_th_adv
    156158
    157159!---------------------------------------------------------------------
     
    424426      allocate(dq_dyn(llm,nqtot))
    425427      allocate(d_q_adv(llm,nqtot))
     428      allocate(d_th_adv(llm))
    426429
    427430c
     
    869872!! Increment state variables
    870873!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     874! pour les cas sandu et astex, on reclacule u,v,q,temp et teta dans 1D_nudge_sandu_astex.h
     875! au dessus de 700hpa, on relaxe vers les profils initiaux
     876      if (forcing_sandu .OR. forcing_astex) then
     877#include "1D_nudge_sandu_astex.h"
     878      else
    871879        u(1:mxcalc)=u(1:mxcalc) + timestep*(
    872880     s              du_phys(1:mxcalc)
     
    892900     .             +d_th_adv(1:mxcalc)
    893901     .             +dt_cooling(1:mxcalc))  ! Taux de chauffage ou refroid.
     902
     903      endif  ! forcing_sandu or forcing_astex
    894904
    895905        teta=temp*(pzero/play)**rkappa
Note: See TracChangeset for help on using the changeset viewer.