Last change
on this file since 803 was
803,
checked in by franke, 13 years ago
|
message string
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | SUBROUTINE compute_vpt |
---|
2 | |
---|
3 | !-------------------------------------------------------------------------------! |
---|
4 | ! Current revisions: |
---|
5 | ! ----------------- |
---|
6 | ! Bugfix: wrong factor in calculation of vpt in case of cloud droplets |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Id: compute_vpt.f90 803 2012-01-16 15:48:46Z franke $ |
---|
11 | ! |
---|
12 | ! 799 2011-12-21 17:48:03Z franke |
---|
13 | ! Bugfix: ql is now included in calculation of vpt in case of |
---|
14 | ! cloud droplets |
---|
15 | ! |
---|
16 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
17 | ! |
---|
18 | ! Revision 1.5 2001/03/30 06:58:52 raasch |
---|
19 | ! Translation of remaining German identifiers (variables, subroutines, etc.) |
---|
20 | ! |
---|
21 | ! Revision 1.1 2000/04/13 14:40:53 schroeter |
---|
22 | ! Initial revision |
---|
23 | ! |
---|
24 | ! |
---|
25 | ! Description: |
---|
26 | ! ------------- |
---|
27 | ! Computation of the virtual potential temperature |
---|
28 | !-------------------------------------------------------------------------------! |
---|
29 | |
---|
30 | USE arrays_3d |
---|
31 | USE indices |
---|
32 | USE cloud_parameters |
---|
33 | USE control_parameters |
---|
34 | |
---|
35 | IMPLICIT NONE |
---|
36 | |
---|
37 | INTEGER :: k |
---|
38 | |
---|
39 | IF ( .NOT. cloud_physics .AND. .NOT. cloud_droplets ) THEN |
---|
40 | vpt = pt * ( 1.0 + 0.61 * q ) |
---|
41 | ELSE IF (cloud_physics) THEN |
---|
42 | DO k = nzb, nzt+1 |
---|
43 | vpt(k,:,:) = ( pt(k,:,:) + pt_d_t(k) * l_d_cp * ql(k,:,:) ) * & |
---|
44 | ( 1.0 + 0.61 * q(k,:,:) - 1.61 * ql(k,:,:) ) |
---|
45 | ENDDO |
---|
46 | ELSE |
---|
47 | vpt = pt * ( 1.0 + 0.61 * q - ql ) |
---|
48 | ENDIF |
---|
49 | |
---|
50 | END SUBROUTINE compute_vpt |
---|
Note: See
TracBrowser
for help on using the repository browser.