source: palm/trunk/SOURCE/interaction_droplets_ptq.f90 @ 1873

Last change on this file since 1873 was 1873, checked in by maronga, 8 years ago

revised renaming of modules

  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1!> @file interaction_droplets_ptq.f90
2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2016 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21! Module renamed (removed _mod)
22!
23!
24! Former revisions:
25! -----------------
26! $Id: interaction_droplets_ptq.f90 1873 2016-04-18 14:50:06Z maronga $
27!
28! 1850 2016-04-08 13:29:27Z maronga
29! Module renamed
30!
31!
32! 1845 2016-04-08 08:29:13Z raasch
33! nzb_2d replaced by nzb_s_inner
34!
35! 1822 2016-04-07 07:49:42Z hoffmann
36! Unused variables removed.
37!
38! 1779 2016-03-03 08:01:28Z raasch
39! bugfix: module procedure names shortened to avoid Intel compiler warnings
40! about too long names
41!
42! 1682 2015-10-07 23:56:08Z knoop
43! Code annotations made doxygen readable
44!
45! 1320 2014-03-20 08:40:49Z raasch
46! ONLY-attribute added to USE-statements,
47! kind-parameters added to all INTEGER and REAL declaration statements,
48! kinds are defined in new module kinds,
49! revision history before 2012 removed,
50! comment fields (!:) to be used for variable explanations added to
51! all variable declaration statements
52!
53! 1036 2012-10-22 13:43:42Z raasch
54! code put under GPL (PALM 3.9)
55!
56! 799 2011-12-21 17:48:03Z franke
57! Bugfix: pt_d_t(k) was missing in calculation of pt_p
58!
59! RCS Log replace by Id keyword, revision history cleaned up
60!
61! Revision 1.1  2005/06/26 19:57:47  raasch
62! Initial revision
63!
64!
65! Description:
66! ------------
67!> Release of latent heat and change of specific humidity due to condensation /
68!> evaporation of droplets.
69!------------------------------------------------------------------------------!
70 MODULE interaction_droplets_ptq_mod
71 
72
73    PRIVATE
74    PUBLIC interaction_droplets_ptq
75
76    INTERFACE interaction_droplets_ptq
77!
78!--    Internal names shortened in order ro avoid Intel compiler messages
79!--    about too long names
80       MODULE PROCEDURE i_droplets_ptq
81       MODULE PROCEDURE i_droplets_ptq_ij
82    END INTERFACE interaction_droplets_ptq
83 
84 CONTAINS
85
86
87!------------------------------------------------------------------------------!
88! Description:
89! ------------
90!> Call for all grid points
91!------------------------------------------------------------------------------!
92    SUBROUTINE i_droplets_ptq
93
94       USE arrays_3d,                                                          &
95           ONLY:  pt_p, ql_c, q_p
96           
97       USE cloud_parameters,                                                   &
98           ONLY:  l_d_cp, pt_d_t
99           
100       USE indices,                                                            &
101           ONLY:  nxl, nxr, nyn, nys, nzb_s_inner, nzt
102           
103       USE kinds
104
105       USE pegrid
106
107       IMPLICIT NONE
108
109       INTEGER(iwp) ::  i !<
110       INTEGER(iwp) ::  j !<
111       INTEGER(iwp) ::  k !<
112
113 
114       DO  i = nxl, nxr
115          DO  j = nys, nyn
116             DO  k = nzb_s_inner(j,i)+1, nzt
117                q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
118                pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
119             ENDDO
120          ENDDO
121       ENDDO
122
123    END SUBROUTINE i_droplets_ptq
124
125
126!------------------------------------------------------------------------------!
127! Description:
128! ------------
129!> Call for grid point i,j
130!------------------------------------------------------------------------------!
131    SUBROUTINE i_droplets_ptq_ij( i, j )
132
133       USE arrays_3d,                                                          &
134           ONLY:  pt_p, ql_c, q_p
135
136       USE cloud_parameters,                                                   &
137           ONLY:  l_d_cp, pt_d_t
138
139       USE indices,                                                            &
140           ONLY:  nzb_s_inner, nzt
141
142       USE kinds,                                                              &
143           ONLY:  iwp, wp
144
145       USE pegrid
146
147       IMPLICIT NONE
148
149       INTEGER(iwp) ::  i !<
150       INTEGER(iwp) ::  j !<
151       INTEGER(iwp) ::  k !<
152
153
154       DO  k = nzb_s_inner(j,i)+1, nzt
155          q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
156          pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
157       ENDDO
158
159    END SUBROUTINE i_droplets_ptq_ij
160
161 END MODULE interaction_droplets_ptq_mod
Note: See TracBrowser for help on using the repository browser.