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