/[lmdze]/trunk/libf/dyn3d/comvert.f90
ViewVC logotype

Diff of /trunk/libf/dyn3d/comvert.f90

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 57 by guez, Mon Jan 30 12:54:02 2012 UTC revision 65 by guez, Thu Sep 20 09:57:03 2012 UTC
# Line 40  contains Line 40  contains
40      INTEGER l, unit      INTEGER l, unit
41      REAL alpha, x(llm)      REAL alpha, x(llm)
42    
43      character(len=7):: s_sampling = "LMD5"      character(len=7):: s_sampling = "tropo"
44      ! (other allowed values are "param", "strato1", "strato2" and "read")      ! (other allowed values are "param", "strato1", "strato" and "read")
45    
46      real:: h = 7. ! scale height, in km      real:: h = 7. ! scale height, in km
47      ! (used only if "s_sampling" == "param" or "strato1")      ! (used only if "s_sampling" == "param" or "strato1")
# Line 78  contains Line 78  contains
78              = cosh((l - 1) / k0) **(- alpha * k0 / h) &              = cosh((l - 1) / k0) **(- alpha * k0 / h) &
79              * exp(- alpha / h * tanh((llm - k1) / k0) &              * exp(- alpha / h * tanh((llm - k1) / k0) &
80              * beta **(l - 1 - (llm - k1)) / log(beta))              * beta **(l - 1 - (llm - k1)) / log(beta))
81      case ("LMD5")      case ("tropo")
        ! Ancienne discrétisation  
82         s(1) = 1.         s(1) = 1.
83         s(llm+1) = 0.         s(llm+1) = 0.
84         forall (l = 1: llm) ds(l) &         forall (l = 1: llm) ds(l) &
# Line 103  contains Line 102  contains
102    
103         s(2:llm) = (exp(- zz(2:llm) / h) - exp(- zz(llm + 1) / h)) &         s(2:llm) = (exp(- zz(2:llm) / h) - exp(- zz(llm + 1) / h)) &
104              / (1. - exp(- zz(llm + 1) / h))              / (1. - exp(- zz(llm + 1) / h))
105      case ("strato2")      case ("strato")
106         ! Recommended by F. Lott for a domain including the stratosphere         ! Recommended by F. Lott for a domain including the stratosphere
107         s(1) = 1.         s(1) = 1.
108         s(llm+1) = 0.         s(llm+1) = 0.

Legend:
Removed from v.57  
changed lines
  Added in v.65

  ViewVC Help
Powered by ViewVC 1.1.21