source: palm/trunk/SOURCE/compute_vpt.f90 @ 803

Last change on this file since 803 was 803, checked in by franke, 12 years ago

message string

  • Property svn:keywords set to Id
File size: 1.3 KB
RevLine 
[1]1 SUBROUTINE compute_vpt
2
3!-------------------------------------------------------------------------------!
[484]4! Current revisions:
[1]5! -----------------
[803]6! Bugfix: wrong factor in calculation of vpt in case of cloud droplets
[1]7!
8! Former revisions:
9! -----------------
[3]10! $Id: compute_vpt.f90 803 2012-01-16 15:48:46Z franke $
[800]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!
[3]16! RCS Log replace by Id keyword, revision history cleaned up
17!
[1]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
[799]39    IF ( .NOT. cloud_physics .AND. .NOT. cloud_droplets ) THEN
[1]40       vpt = pt * ( 1.0 + 0.61 * q )
[799]41    ELSE IF (cloud_physics) THEN
[1]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
[799]46    ELSE
[803]47       vpt = pt * ( 1.0 + 0.61 * q - ql ) 
[1]48    ENDIF
49
50 END SUBROUTINE compute_vpt
Note: See TracBrowser for help on using the repository browser.