-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatm_model.f90
67 lines (43 loc) · 947 Bytes
/
atm_model.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
program boundary_layer_model
!
! Program for modelling boundary layer interactions.
!
!
! Authors: P. Ollinaho,
! T. Perttula,
! T. Olsson
!
use precision
use constants
use utils
use operators
use boundary
implicit none
real(dp),dimension(nz) :: u,v,theta
real(dp), dimension(nz-1) :: fm, fh, ri, K_m, K_h
real(dp), dimension(nz-2) :: dU, dV, dH
integer :: i
! write(*,*) h_half(30)
call initialize(u,v,theta)
! write(*,*) u
call richardson(u,v,theta,fm,fh, ri)
do i=1,nz
write(*,*) ri(i), fm(i), fh(i)
end do
call vaihtokerroin(u,v,fm,fh,K_m,K_h)
do i=1,nz
write(*,*) K_m(i), K_h(i)
end do
call momentum_dt(u,v,K_m,dU)
call momentum_dt(v,u,K_m,dV)
write(*,*)
do i=1,nz-2
write(*,*) dU(i),dV(i)
end do
call heat_tracer_dt(theta,K_h,dH,-1.0_dp)
write(*,*)
do i=1,nz-2
write(*,*) dH(i)
end do
contains
end program boundary_layer_model