Ignore:
Timestamp:
Mar 26, 2013 6:16:16 PM (11 years ago)
Author:
hoffmann
Message:

optimization of two-moments cloud physics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/advec_ws.f90

    r1054 r1115  
    2020! Current revisions:
    2121! ------------------
     22! calculation of qr and nr is restricted to precipitation
    2223!
    2324! Former revisions:
     
    210211          sums_wspts_ws_l = 0.0
    211212
    212           IF ( humidity .OR. passive_scalar )  THEN
     213          IF ( humidity  .OR. passive_scalar )  THEN
    213214             ALLOCATE( sums_wsqs_ws_l(nzb:nzt+1,0:threads_per_task-1) )
    214215             sums_wsqs_ws_l = 0.0
    215216          ENDIF
    216217
    217           IF ( cloud_physics .AND. icloud_scheme == 0 )  THEN
     218          IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.  &
     219               precipitation )  THEN
    218220             ALLOCATE( sums_wsqrs_ws_l(nzb:nzt+1,0:threads_per_task-1) )
    219221             ALLOCATE( sums_wsnrs_ws_l(nzb:nzt+1,0:threads_per_task-1) )
     
    264266                       diss_l_e(nzb+1:nzt,nys:nyn,0:threads_per_task-1) )
    265267
    266              IF ( humidity .OR. passive_scalar )  THEN
     268             IF ( humidity  .OR. passive_scalar )  THEN
    267269                ALLOCATE( flux_s_q(nzb+1:nzt,0:threads_per_task-1),          &
    268270                          diss_s_q(nzb+1:nzt,0:threads_per_task-1) )
     
    271273             ENDIF
    272274
    273              IF ( cloud_physics .AND. icloud_scheme == 0 )  THEN
     275             IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.            &
     276                  precipitation )  THEN
    274277                ALLOCATE( flux_s_qr(nzb+1:nzt,0:threads_per_task-1),         &
    275278                          diss_s_qr(nzb+1:nzt,0:threads_per_task-1),         &
     
    280283                          flux_l_nr(nzb+1:nzt,nys:nyn,0:threads_per_task-1), &
    281284                          diss_l_nr(nzb+1:nzt,nys:nyn,0:threads_per_task-1) )
    282              END IF
     285             ENDIF
    283286
    284287             IF ( ocean )  THEN
     
    297300
    298301!------------------------------------------------------------------------------!
    299 ! Initialize variables used for storing statistic qauntities (fluxes, variances)
     302! Initialize variables used for storing statistic quantities (fluxes, variances)
    300303!------------------------------------------------------------------------------!
    301304    SUBROUTINE ws_statistics
     
    319322       IF ( ws_scheme_sca )  THEN
    320323          sums_wspts_ws_l = 0.0
    321           IF ( humidity .OR. passive_scalar )  sums_wsqs_ws_l = 0.0
    322           IF ( cloud_physics .AND. icloud_scheme == 0 )  THEN
     324          IF ( humidity  .OR.  passive_scalar )  sums_wsqs_ws_l = 0.0
     325          IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.  &
     326               precipitation )  THEN
    323327             sums_wsqrs_ws_l = 0.0
    324328             sums_wsnrs_ws_l = 0.0
     
    770774                                 * weight_substep(intermediate_timestep_count)
    771775             ENDDO
    772 
    773776
    774777         END SELECT
Note: See TracChangeset for help on using the changeset viewer.