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