LMDZ
PHY________OUT.f90
Go to the documentation of this file.
1  subroutine phy________out(MOTIVATION)
2 
3 !------------------------------------------------------------------------------+
4 ! Sat 22-Jun-2013 MAR |
5 ! MAR PHY________OUT |
6 ! subroutine PHY________OUT OUTPUTs MAR PHYsical parameterizations |
7 ! |
8 ! version 3.p.4.1 created by H. Gallee, Tue 12-Mar-2013 |
9 ! Last Modification by H. Gallee, Sat 22-Jun-2013 |
10 ! |
11 !------------------------------------------------------------------------------+
12 
13  use mod_real
14  use mod_phy____dat
15  use mod_phy____grd
16  use mod_phy_dy_kkl
17  use mod_phy_cm_kkl
18  use mod_phy_at_kkl
19  use mod_sisvat_gpt
20 
21 
22  IMPLICIT NONE
23 
24 
25  character(len=50) :: MOTIVATION
26  integer :: i, j, ikl !
27  integer :: k, kz !
28  real(kind=real8) :: RelHum
29 
30 
31 
32 
33 ! OUTPUT
34 ! ======
35 
36 
37 ! txt file
38 ! --------
39 
40  i = i_x0
41  j = j_y0
42  ikl = ikl0
43 
44  write(4,50) motivation
45  50 format(3(/,1x),' OUTPUT for VERIFICATION: ',a50, &
46  & /,1x ,' ***********************',/,1x)
47 
49  55 format(3x,2(i2,'-'),i4,4x,3(i2,'-'),' Simulation Iteration No ',i6)
50 
51  write(4,62)
52  write(4,60)
53  60 format(7x,'|',' sigma ',' |',' Z ',' |',' T ',' |' &!
54  & ,' U ',' |',' V ',' |',' RH ',' |',' Qv ',' |' &!
55  & ,' Qw ',' |',' Qi ',' |' &!
56  & ,' TKE ',' |',' eps ',' |' &!
57  & ,' Kzh L',' |',' Kzh ',' |' &!
58  &,/,' |',' ',' |',' [km] ',' |',' [K] ',' |' &!
59  & ,' [m/s]',' |',' [m/s]',' |',' [-] ',' |',' [g/kg]',' |' &!
60  & ,' [g/kg]',' |',' [g/kg]',' |' &!
61  & ,'[m2/s2]',' |','[m3/s2]',' |' &!
62  & ,' [m2/s]',' |',' [m2/s]',' |' &!
63  &,/,' ------+','---------','-+','---------','-+','---------','-+' &!
64  & ,'------','-+','------','-+','------','-+','-------','-+' &!
65  & ,'-------','-+','-------','-+' &!
66  & ,'-------','-+','-------','-+' &!
67  & ,'-------','-+','-------','-+') !
68  DO k = 1,mzp
69  kz=min(k,mzp)
70  relhum = min(un_1,qv__dy(ikl,k) /max(qvswcm(ikl,k),eps6))
71  write(4,61) k,sigma(k),z___dy(ikl,k)*1.e-3 ,ta__dy(ikl,k) &!
72  & ,ua__dy(ikl,k) ,va__dy(ikl,k) &!
73  & ,relhum , 1.e3*qv__dy(ikl,k) &!
74  & ,1.e3*qw__cm(ikl,kz), 1.e3*qi__cm(ikl,kz) &!
75  & , tke_at(ikl,kz), eps_at(ikl,kz) &!
76  & , kzh_at(ikl,kz), kzh0at(ikl,kz)
77  61 format(i6,' |',f9.6,' |', f9.4,' |' , f9.3,' |' ,2(f6.1,' |') &!
78  & ,f6.2,' |', f7.3,' |' ,2(f7.3,' |') &!
79  & ,2(f7.2,' |'),2(f7.3,' |') )
80  IF (mod(k,15).EQ.0) THEN
81  write(4,62)
82  62 format( &!
83  & ' ------+','---------','-+','---------','-+','---------','-+' &!
84  & ,'------','-+','------','-+','------','-+','-------','-+' &!
85  & ,'-------','-+','-------','-+' &!
86  & ,'-------','-+','-------','-+' &!
87  & ,'-------','-+','-------','-+') !
88 
89  write(4,60)
90  END IF
91  ENDDO
92 
93  write(4,62)
94  write(4,63) uts_sv_gpt(ikl),1.e3*uqs_sv_gpt(ikl),us__sv_gpt(ikl) &
95  & , hsensv_gpt(ikl), hlatsv_gpt(ikl)
96  63 format( &!
97  & 6x,' |', 9x ,' |', ( 9x ,' |'),' u*T* |' &!
98  & ,2( 6x ,' |'), ' u*q* |' &!
99  & , 7x ,' |' ,2( 7x ,' |'),' u* |' &!
100  & , 7x ,' |' ,2( 7x ,' |') &!
101  & ,/,6x,' |', 9x ,' |', ( 9x ,' |'), f9.6,' |' &!
102  & ,2( 6x ,' |'),f6.3,' |' &!
103  & , 7x ,' |' ,2( 7x ,' |'),f7.2,' |' &!
104  & , 7x ,' |' ,2( 7x ,' |') &!
105  & ,/,6x,' |', 9x ,' |', ( 9x ,' |'), f9.3,' |' &!
106  & ,2( 6x ,' |'),f6.0,' |' &!
107  & , 7x ,' |' ,2( 7x ,' |'), 7x ,' |' &!
108  & , 7x ,' |' ,2( 7x ,' |') &!
109  & ,/,6x,' |', 9x ,' |', ( 9x ,' |'),' [W/m2] |' &!
110  & ,2( 6x ,' |'), ' [W/m2]|' &!
111  & , 7x ,' |' ,2( 7x ,' |'),' |' &!
112  & , 7x ,' |' ,2( 7x ,' |') )
113 
114  k = mzpp
115  write(4,62)
116  relhum = min(un_1,qv__dy(ikl,k) /max(qvswcm(ikl,k),eps6))
117  write(4,64) k,sigma(k),z___dy(ikl,k)*1.e-3 ,ta__dy(ikl,k) &!
118  & ,zer0 ,zer0 &!
119  & ,relhum , 1.e3*qv__dy(ikl,k)
120  64 format(i6,' |',f9.6,' |', f9.4,' |' , f9.3,' |' ,2(f6.1,' |') &!
121  & ,f6.2,' |', f7.3,' |' ,2( 7x ,' |') &!
122  & ,2( 7x ,' |'),2( 7x ,' |') )
123  write(4,62)
124 
125 
126 
127 ! cdf file
128 ! --------
129 
130 
131  end subroutine phy________out
integer, save day_tu
real(kind=real8), dimension(:,:), allocatable, save qvswcm
real(kind=real8), dimension(:,:), allocatable, save kzh0at
real(kind=real8), dimension(:), allocatable, save us__sv_gpt
real(kind=real8), save un_1
real(kind=real8), dimension(:,:), allocatable, save ua__dy
real(kind=real8), dimension(:,:), allocatable, save kzh_at
real(kind=real8), dimension(:,:), allocatable, save qv__dy
real(kind=real8), dimension(:,:), allocatable, save qw__cm
real(kind=real8), dimension(:,:), allocatable, save va__dy
integer, save j_y0
integer, save ikl0
integer, save it_exp
real(kind=real8), dimension(:,:), allocatable, save eps_at
real(kind=real8), dimension(:), allocatable, save hlatsv_gpt
integer, save mon_tu
real(kind=real8), dimension(:,:), allocatable, save z___dy
real(kind=real8), dimension(:), allocatable, save hsensv_gpt
real(kind=real8), dimension(:,:), allocatable, save ta__dy
!$Header!c c INCLUDE fxyprim h c c c Fonctions in line c c REAL fyprim REAL rj c c il faut la calculer avant d appeler ces fonctions c c c Fonctions a changer selon x(x) et y(y) choisis.c-----------------------------------------------------------------c c.....ici
integer, save mzpp
integer, save minutu
real(kind=real8), dimension(:,:), allocatable, save tke_at
integer, save i_x0
integer, save mzp
real(kind=real8), dimension(:), allocatable, save sigma
real(kind=real8), dimension(:,:), allocatable, save qi__cm
subroutine phy________out(MOTIVATION)
real(kind=real8), save eps6
real(kind=real8), save zer0
integer, save yeartu
integer, save hourtu
integer, save sec_tu
real(kind=real8), dimension(:), allocatable, save uqs_sv_gpt
real(kind=real8), dimension(:), allocatable, save uts_sv_gpt