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

Last change on this file since 4180 was 4180, checked in by scharf, 5 years ago

removed comments in 'Former revisions' section that are older than 01.01.2019

  • Property svn:keywords set to Id
File size: 2.3 KB
RevLine 
[1682]1!> @file compute_vpt.f90
[2000]2!------------------------------------------------------------------------------!
[2696]3! This file is part of the PALM model system.
[1036]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!
[3655]17! Copyright 1997-2019 Leibniz Universitaet Hannover
[2000]18!------------------------------------------------------------------------------!
[1036]19!
[484]20! Current revisions:
[1]21! -----------------
[1354]22!
[2001]23!
[1321]24! Former revisions:
25! -----------------
26! $Id: compute_vpt.f90 4180 2019-08-21 14:37:54Z scharf $
[3274]27! Modularization of all bulk cloud physics code components
28!
[1321]29!
[1]30! Description:
31! -------------
[1682]32!> Computation of the virtual potential temperature
[1320]33!------------------------------------------------------------------------------!
[1682]34 SUBROUTINE compute_vpt
35 
[1]36
[1320]37    USE arrays_3d,                                                             &
[3274]38        ONLY:  pt, q, ql, vpt, d_exner
39
40    USE basic_constants_and_equations_mod,                                     &
41        ONLY:  lv_d_cp
42
43    USE control_parameters,                                                    &
44        ONLY:  cloud_droplets
45
[1320]46    USE indices,                                                               &
47        ONLY:  nzb, nzt
[3274]48
[1320]49    USE kinds
[1]50
[3274]51    USE bulk_cloud_model_mod,                                                  &
52        ONLY:  bulk_cloud_model
53
[1]54    IMPLICIT NONE
55
[1682]56    INTEGER(iwp) :: k   !<
[1]57
[3274]58    IF ( .NOT. bulk_cloud_model  .AND.  .NOT. cloud_droplets )  THEN
[1353]59       vpt = pt * ( 1.0_wp + 0.61_wp * q )
[3274]60    ELSE IF (bulk_cloud_model)  THEN
[1]61       DO  k = nzb, nzt+1
[3274]62          vpt(k,:,:) = ( pt(k,:,:) + d_exner(k) * lv_d_cp * ql(k,:,:) ) *      &
[1353]63                       ( 1.0_wp + 0.61_wp * q(k,:,:) - 1.61_wp * ql(k,:,:) ) 
[1]64       ENDDO
[799]65    ELSE
[1353]66       vpt = pt * ( 1.0_wp + 0.61_wp * q - ql ) 
[1]67    ENDIF
68
69 END SUBROUTINE compute_vpt
Note: See TracBrowser for help on using the repository browser.