14 |
|
|
15 |
use cv30_param_m, only: nl |
use cv30_param_m, only: nl |
16 |
USE dimphy, ONLY: klev, klon |
USE dimphy, ONLY: klev, klon |
17 |
|
use nr_util, only: assert |
18 |
|
|
19 |
! inputs: |
! inputs: |
20 |
integer, intent(in):: iflag1(:), nk1(:), icb1(:), icbs1(:) ! (klon) |
integer, intent(in):: iflag1(:), nk1(:), icb1(:), icbs1(:) ! (klon) |
32 |
|
|
33 |
! outputs: |
! outputs: |
34 |
integer nk(:) ! (klon) |
integer nk(:) ! (klon) |
35 |
|
integer, intent(out):: icb(:) ! (ncum) {2 <= icb <= nl - 3} |
|
integer, intent(out):: icb(:) ! (ncum) |
|
|
! {2 <= icb <= nl - 3} |
|
|
! {ph(i, icb(i) + 1) < plcl(i) <= ph(i, icb(i))} |
|
|
|
|
36 |
integer icbs(klon) |
integer icbs(klon) |
37 |
real, intent(out):: plcl(:) ! (ncum) |
real, intent(out):: plcl(:) ! (ncum) |
38 |
real tnk(:), qnk(:), gznk(:) ! (klon) |
real tnk(:), qnk(:), gznk(:) ! (klon) |
98 |
endif |
endif |
99 |
end do |
end do |
100 |
|
|
101 |
|
do i = 1, ncum |
102 |
|
call assert(2 <= icb(i) .and. icb(i) <= nl - 3 .and. ph(i, icb(i) + 1) & |
103 |
|
< plcl(i) .and. (plcl(i) <= ph(i, icb(i)) .or. icb(i) == 2), & |
104 |
|
"cv30_compress") |
105 |
|
end do |
106 |
|
|
107 |
end SUBROUTINE cv30_compress |
end SUBROUTINE cv30_compress |
108 |
|
|
109 |
end module cv30_compress_m |
end module cv30_compress_m |