Changeset 2197 for LMDZ5/trunk/libf/phylmd
- Timestamp:
- Feb 9, 2015, 8:13:05 AM (10 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/clift.F90
r1992 r2197 3 3 4 4 SUBROUTINE clift(p, t, rr, rs, plcl, dplcldt, dplcldq) 5 IMPLICIT NONE 5 6 ! *************************************************************** 6 7 ! * * … … 41 42 42 43 include "YOMCST.h" 44 real :: p,t,rr,rs,plcl,dplcldt,dplcldq,cpd,cpv,cl,cpvmcl,eps,alv0,a,b 45 real :: rh,chi,alv 43 46 44 47 cpd = rcpd -
LMDZ5/trunk/libf/phylmd/convect3.F90
r1992 r2197 17 17 USE dimphy 18 18 USE infotrac, ONLY: nbtr 19 19 IMPLICIT NONE 20 20 include "dimensions.h" 21 21 INTEGER na … … 73 73 74 74 75 75 REAL :: cpv,cl,cpvmcl,eps,alv0,rdcp,pbcrit,ptcrit,sigd,spfac 76 REAL :: tau,beta,alpha,dtcrit,dtovsh,ahm,rm,um,vm,dphinv 77 REAL :: a2,x,tvx,tvy,plcl,pden,dpbase,tvpbase,tvbase,tdif 78 REAL :: ath1,ath,delti,deltap,dcape,dlnp,sigold,dtmin,fac,w 79 REAL :: amu,rti,cpd,bf2,anum,denom,dei,altem,cwat,stemp,qp 80 REAL :: scrit,alt,smax,asij,wgh,sjmax,sjmin,smid,delp,delm 81 REAL :: asum,bsum,csum,wflux,tinv,wdtrain,awat,afac,afac1,afac2 82 REAL :: bfac,pr1,pr2,sigt,b6,c6,revap,tevap,delth,amfac,amp2 83 REAL :: xf,tf,af,bf,fac2,ur,sru,d,ampmax,dpinv,am,amde,cpinv 84 REAL :: amp1,ad,rat,ax,bx,cx,dx,ex,dsum 85 INTEGER :: nk,i,j,nopt,jn,k,im,jm,n 76 86 77 87 REAL dnwd0(nd) ! precipitation driven unsaturated downdraft flux -
LMDZ5/trunk/libf/phylmd/cv3_inicp.F90
r1992 r2197 9 9 ! modified by : * 10 10 ! ************************************************************** 11 11 IMPLICIT NONE 12 12 include "YOMCST2.h" 13 13 … … 19 19 20 20 REAL qcoef1, qcoef2, qff, qfff, qmix, rmix, qmix1, rmix1, qmix2, rmix2, f 21 REAL :: sumcoef,sigma,aire,pdf,mu,df,ff 21 22 22 23 qcoef1(f) = tanh(f/gammas) -
LMDZ5/trunk/libf/phylmd/hines_gwd.F90
r1992 r2197 625 625 mmin_alpha, kstar, slope, f1, f2, f3, naz, levbot, levtop, il1, il2, & 626 626 nlons, nlevs, nazmth, sigsqmcw, sigmatm, lorms, sigalpmc, f2mod) 627 628 627 ! Smooth cutoff wavenumbers and total rms velocity in the vertical 629 628 ! direction NSMAX times, using FLUX_U as temporary work array. … … 715 714 i_alpha, mmin_alpha, kstar, slope, f1, f2, f3, naz, levbot, levtop, il1, & 716 715 il2, nlons, nlevs, nazmth, sigsqmcw, sigmatm, lorms, sigalpmc, f2mod) 717 716 IMPLICIT NONE 718 717 ! This routine calculates the cutoff vertical wavenumber and velocity 719 718 ! variances on a longitude by altitude grid for the Hines' Doppler … … 766 765 767 766 INTEGER naz, levbot, levtop, il1, il2, nlons, nlevs, nazmth 768 REAL slope, kstar(nlons), f1, f2, f3 767 REAL slope, kstar(nlons), f1, f2, f3, f2mfac 769 768 REAL m_alpha(nlons, nlevs, nazmth) 770 769 REAL sigma_alpha(nlons, nlevs, nazmth) … … 938 937 SUBROUTINE hines_wind(v_alpha, vel_u, vel_v, naz, il1, il2, lev1, lev2, & 939 938 nlons, nlevs, nazmth) 940 939 IMPLICIT NONE 941 940 ! This routine calculates the azimuthal horizontal background wind 942 941 ! components … … 1034 1033 m_alpha, ak_alpha, k_alpha, slope, naz, il1, il2, lev1, lev2, nlons, & 1035 1034 nlevs, nazmth, lorms) 1036 1035 IMPLICIT NONE 1037 1036 ! Calculate zonal and meridional components of the vertical flux 1038 1037 ! of horizontal momentum and corresponding wave drag (force per unit mass) … … 1089 1088 ! Internal variables. 1090 1089 1091 INTEGER i, l, lev1p, lev2m 1090 INTEGER i, l, lev1p, lev2m, lev2p 1092 1091 REAL cos45, prod2, prod4, prod6, prod8, dendz, dendz2 1093 1092 DATA cos45/0.7071068/ … … 1234 1233 bvfreq, density, densb, sigma_t, visc_mol, kstar, slope, f2, f3, f5, f6, & 1235 1234 naz, il1, il2, lev1, lev2, nlons, nlevs, nazmth) 1236 1235 IMPLICIT NONE 1237 1236 ! This routine calculates the gravity wave induced heating and 1238 1237 ! diffusion coefficient on a longitude by altitude grid for … … 1355 1354 SUBROUTINE hines_sigma(sigma_t, sigma_alpha, sigsqh_alpha, naz, lev, il1, & 1356 1355 il2, nlons, nlevs, nazmth) 1357 1356 IMPLICIT NONE 1358 1357 ! This routine calculates the total rms and azimuthal rms horizontal 1359 1358 ! velocities at a given level on a longitude by altitude grid for … … 1450 1449 SUBROUTINE hines_intgrl(i_alpha, v_alpha, m_alpha, bvfb, slope, naz, lev, & 1451 1450 il1, il2, nlons, nlevs, nazmth, lorms) 1452 1451 IMPLICIT NONE 1453 1452 ! This routine calculates the vertical wavenumber integral 1454 1453 ! for a single vertical level at each azimuth on a longitude grid … … 1643 1642 alt_cutoff, smco, nsmax, iheatcal, k_alpha, ierror, nmessg, nlons, & 1644 1643 nazmth, coslat) 1645 1644 IMPLICIT NONE 1646 1645 ! This routine specifies various parameters needed for the 1647 1646 ! the Hines' Doppler spread gravity wave drag parameterization scheme. … … 1772 1771 sigma_alpha, v_alpha, m_alpha, iu_print, iv_print, nmessg, ilprt1, & 1773 1772 ilprt2, levprt1, levprt2, naz, nlons, nlevs, nazmth) 1774 1773 IMPLICIT NONE 1775 1774 ! Print out altitude profiles of various quantities from 1776 1775 ! Hines' Doppler spread gravity wave drag parameterization scheme. … … 1864 1863 SUBROUTINE hines_exp(data, data_zmax, alt, alt_exp, iorder, il1, il2, lev1, & 1865 1864 lev2, nlons, nlevs) 1866 1865 IMPLICIT NONE 1867 1866 ! This routine exponentially damps a longitude by altitude array 1868 1867 ! of data above a specified altitude. … … 1941 1940 SUBROUTINE vert_smooth(data, work, coeff, nsmooth, il1, il2, lev1, lev2, & 1942 1941 nlons, nlevs) 1943 1942 IMPLICIT NONE 1944 1943 ! Smooth a longitude by altitude array in the vertical over a 1945 1944 ! specified number of levels using a three point smoother. -
LMDZ5/trunk/libf/phylmd/ini_wake.F90
r1992 r2197 4 4 SUBROUTINE ini_wake(wape, fip, it_wape_prescr, wape_prescr, fip_prescr, & 5 5 alp_bl_prescr, ale_bl_prescr) 6 IMPLICIT NONE 6 7 ! ************************************************************** 7 8 ! * … … 39 40 include 'iniprint.h' 40 41 ! declarations 42 REAL wape, fip, wape_prescr, fip_prescr 43 INTEGER it_wape_prescr 41 44 REAL ale_bl_prescr 42 45 REAL alp_bl_prescr 43 46 REAL it 47 REAL w,f,alebl,alpbl 44 48 45 49 ! FH A mettre si besoin dans physiq.def -
LMDZ5/trunk/libf/phylmd/tilft43.F90
r1992 r2197 3 3 4 4 SUBROUTINE tlift43(p, t, q, qs, gz, icb, nk, tvp, tpk, clw, nd, nl, kk) 5 IMPLICIT NONE 5 6 REAL gz(nd), tpk(nd), clw(nd), p(nd) 6 7 REAL t(nd), q(nd), qs(nd), tvp(nd), lv0 7 8 INTEGER icb, nk, nd, nl, kk 9 REAL cpd, cpv, cl, g, rowl, gravity, cpvmcl, eps, epsi 10 REAL ah0, cpp, cpinv, tg, qg, alv, s, ahg, tc, denom, es 11 INTEGER i, nst, nsb, j 8 12 ! *** ASSIGN VALUES OF THERMODYNAMIC CONSTANTS *** 9 13 -
LMDZ5/trunk/libf/phylmd/tlift.F90
r1992 r2197 4 4 SUBROUTINE tlift(p, t, rr, rs, gz, plcl, icb, nk, tvp, tpk, clw, nd, nl, & 5 5 dtvpdt1, dtvpdq1) 6 6 IMPLICIT NONE 7 7 ! Argument NK ajoute (jyg) = Niveau de depart de la 8 8 ! convection 9 10 PARAMETER (na=60)11 REAL gz(nd), tpk(nd), clw(nd) 9 INTEGER icb, nk, nd, nl 10 INTEGER,PARAMETER :: na=60 11 REAL gz(nd), tpk(nd), clw(nd), plcl 12 12 REAL t(nd), rr(nd), rs(nd), tvp(nd), p(nd) 13 13 REAL dtvpdt1(nd), dtvpdq1(nd) ! Derivatives of parcel virtual … … 17 17 REAL dtpdt1(na), dtpdq1(na) ! Derivatives of parcel temperature 18 18 ! wrt T1 and Q1 19 19 REAL gravity, cpd, cpv, cl, ci, cpvmcl, clmci, eps, alv0, alf0 20 REAL cpp, cpinv, ah0, alf, tg, s, ahg, tc, denom, alv, es, esi 21 REAL qsat_new, snew 22 INTEGER icbl, i, imin, j, icb1 20 23 21 24 LOGICAL ice_conv -
LMDZ5/trunk/libf/phylmd/wake.F90
r2155 r2197 1756 1756 ! a une humidite positive dans la zone (x) et dans la zone (w). 1757 1757 ! ------------------------------------------------------ 1758 1758 IMPLICIT NONE 1759 1759 1760 1760 ! Input … … 1772 1772 REAL epsilon 1773 1773 ! DATA epsilon/1.e-15/ 1774 INTEGER i,k 1774 1775 1775 1776 DO k = 1, nl
Note: See TracChangeset
for help on using the changeset viewer.