4 SUBROUTINE iniacademic(vcov,ucov,teta,q,masse,ps,phis,time_0)
26 include
"dimensions.h"
58 REAL ddsin,zsig,tetapv,w_pv
63 REAL teta0,ttp,delt_y,delt_z,
eps
67 REAL phi_pv,dphi_pv,gam_pv
74 character(len=*),
parameter :: modname=
"iniacademic"
75 character(len=80) :: abort_message
124 CALL
getin(
'ok_geost',ok_geost)
127 CALL
getin(
'k_j',k_f)
130 CALL
getin(
'k_c_s',k_c_s)
133 CALL
getin(
'k_c_a',k_c_a)
137 CALL
getin(
'teta0',teta0)
139 CALL
getin(
'ttp',ttp)
143 CALL
getin(
'delt_y',delt_y)
145 CALL
getin(
'delt_z',delt_z)
148 CALL
getin(
'ok_pv',ok_pv)
150 CALL
getin(
'phi_pv',phi_pv)
151 phi_pv=phi_pv*
pi/180.
153 CALL
getin(
'dphi_pv',dphi_pv)
154 dphi_pv=dphi_pv*
pi/180.
156 CALL
getin(
'gam_pv',gam_pv)
163 knewt_t(
l)=(k_c_s-k_c_a)*max(0.,(zsig-0.7)/0.3)
164 kfrict(
l)=k_f*max(0.,(zsig-0.7)/0.3)
167 clat4((
j-1)*iip1+1:
j*iip1)=cos(
rlatu(
j))**4
173 tetastrat=ttp*zsig**(-
kappa)
175 IF ((ok_pv).AND.(zsig.LT.0.1))
THEN
176 tetapv=tetastrat*(zsig*10.)**(
kappa*
cpp*gam_pv/1000./
g)
181 tetajl(
j,
l)=teta0-delt_y*ddsin*ddsin+
eps*ddsin &
182 -delt_z*(1.-ddsin*ddsin)*log(zsig)
183 if (planet_type==
"giant")
then
184 tetajl(
j,
l)=teta0+(delt_y* &
185 ((sin(
rlatu(
j)*3.14159*
eps+0.0001))**2) &
190 w_pv=(1.-tanh((
rlatu(
j)-phi_pv)/dphi_pv))/2.
191 tetastrat=tetastrat*(1.-w_pv)+tetapv*w_pv
192 tetajl(
j,
l)=max(tetajl(
j,
l),tetastrat)
224 if (pressure_exner)
then
246 if (planet_type==
"earth")
then
249 if (
i == 1)
q(:,:,
i)=1.e-10
250 if (
i == 2)
q(:,:,
i)=1.e-15
251 if (
i.gt.2)
q(:,:,
i)=0.