33 #include "dimensions.h" 
   59       REAL :: sinth,costh,costh2, Ath,Bth,Cth, lon,dps
 
   62       REAL, 
PARAMETER    :: rho=1 
 
   63       REAL, 
PARAMETER    :: K    = 7.848e-6  
 
   64       REAL, 
PARAMETER    :: gh0  = 9.80616 * 8e3 
 
   65       INTEGER, 
PARAMETER :: R0=4, r1=r0+1, r2=r0+2         
 
   74             costh2 = cos(
rlatu(j))**2
 
   75             ath = (r0+1)*(costh2**2) + (2*r0*r0-r0-2)*costh2 - 2*r0*r0
 
   76             ath = .25*(k**2)*(costh2**(r0-1))*ath
 
   77             ath = .5*k*(2*omeg+k)*costh2 + ath 
 
   78             bth = (r1*r1+1)-r1*r1*costh2
 
   79             bth = 2*(omeg+k)*k/(r1*r2) * (costh2**(r0/2))*bth
 
   81             cth = .25*k*k*(costh2**r0)*cth
 
   85                dps = ath + bth*cos(r0*lon) + cth*cos(2*r0*lon)
 
   86                ps(ij) = rho*(gh0 + (
rad**2)*dps)
 
   89          write(
lunout,*) 
'W91 ps', maxval(ps), minval(ps)
 
   95             bth = r0*(1-costh2)-costh2
 
   96             bth = 
rad*k*bth*(costh**(r0-1))
 
  100                ucov(ij,1) = (ath + bth*cos(r0*lon))
 
  103          write(
lunout,*) 
'W91 u', maxval(ucov(:,1)), minval(ucov(:,1))
 
  104          ucov(:,1)=ucov(:,1)*
cu 
  107             sinth  = sin(
rlatv(j))
 
  108             costh  = cos(
rlatv(j))
 
  109             ath = -
rad*k*r0*sinth*(costh**(r0-1))
 
  113                vcov(ij,1) = ath*sin(r0*lon)
 
  116          write(
lunout,*) 
'W91 v', maxval(vcov(:,1)), minval(vcov(:,1))
 
  117          vcov(:,1)=vcov(:,1)*
cv 
  126                ps(ij) = 1e5*(1 + .1*exp(-100*(1+sin(
rlatu(j)))**2) )
 
!$Header llmm1 INTEGER ip1jmp1
 
!$Id Turb_fcg_gcssold get_uvd hqturb_gcssold endif!large scale llm day day1 day day1 *dt_toga endif!time annee_ref dt_toga u_toga vq_toga w_prof vq_prof llm day day1 day day1 *dt_dice endif!time annee_ref dt_dice swup_dice vg_dice omega_dice tg_prof vg_profd w_profd omega_profd!do llm!print llm l llm
 
!$Header!CDK comgeom COMMON comgeom rlatu
 
!$Header llmm1 INTEGER ip1jm
 
subroutine pression(ngrid, ap, bp, ps, p)
 
!$Id mode_top_bound COMMON comconstr rad
 
!$Id mode_top_bound COMMON comconstr cpp
 
!$Header!CDK comgeom COMMON comgeom rlonu
 
!$Header!CDK comgeom COMMON comgeom rlatv
 
!$Id!Parameters for parameters that control the rate of approach!to quasi equilibrium noff nlm real tlcrit real entp real sigd real coeffs real dtmax real cu real betad real damp real delta COMMON cvparam nlm tlcrit sigd coeffs cu
 
subroutine sw_case_williamson91_6(vcov, ucov, teta, masse, ps)
 
subroutine massdair(p, masse)
 
!$Header!CDK comgeom COMMON comgeom cv
 
!$Header!gestion des impressions de sorties et de débogage la sortie standard prt_level COMMON comprint lunout
 
!$Header!CDK comgeom COMMON comgeom rlonv