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") |
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) & |
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. |