Changeset 2522 for palm/trunk


Ignore:
Timestamp:
Oct 5, 2017 2:20:37 PM (7 years ago)
Author:
schwenkel
Message:

minor bugfix

File:
1 edited

Legend:

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

    r2375 r2522  
    2525! -----------------
    2626! $Id$
     27! Minor bugfix
     28!
     29! 2375 2017-08-29 14:10:28Z schwenkel
    2730! Improved aerosol initilization and some minor bugfixes
    2831! for droplet sedimenation
     
    609612!--             (see: Bott + Trautmann, 2002, Atm. Res., 64)
    610613                k_act  = 0.7_wp
    611 
    612                 IF ( sat >= 0.0 .AND. .NOT. curvature_solution_effects_bulk ) THEN
     614                activ  = 0.0_wp
     615
     616
     617                IF ( sat > 0.0 .AND. .NOT. curvature_solution_effects_bulk ) THEN
    613618!
    614619!--                Compute the number of activated Aerosols
     
    627632                      ( 1.0_wp, ( sat / sat_max )**k_act) - nc(k,j,i) ) ) /    &
    628633                       dt_micro
    629                 ELSEIF ( sat >= 0.0 .AND. curvature_solution_effects_bulk ) THEN
     634                ELSEIF ( sat > 0.0 .AND. curvature_solution_effects_bulk ) THEN
    630635!
    631636!--                Curvature effect (afactor) with surface tension
     
    850855                nc_auto = MERGE( nc(k,j,i), nc_const, microphysics_morrison )
    851856
    852                 IF ( qc(k,j,i) > eps_sb )  THEN
     857                IF ( qc(k,j,i) > eps_sb  .AND.  nc_auto > eps_mr )  THEN
    853858
    854859                   k_au = k_cc / ( 20.0_wp * x0 )
     
    856861!--                Intern time scale of coagulation (Seifert and Beheng, 2006):
    857862!--                (1.0_wp - qc(k,j,i) / ( qc(k,j,i) + qr(k,j,i) ))
    858                    tau_cloud = 1.0_wp - qc(k,j,i) / ( qr(k,j,i) + qc(k,j,i) )
     863                   tau_cloud = MAX( 1.0_wp - qc(k,j,i) / ( qr(k,j,i) +         &
     864                                    qc(k,j,i) ), 0.0_wp )
    859865!
    860866!--                Universal function for autoconversion process
     
    868874!
    869875!--                Mean weight of cloud droplets:
    870                    xc = hyrho(k) * qc(k,j,i) / nc_auto
     876                   xc = MAX( hyrho(k) * qc(k,j,i) / nc_auto, xcmin)
    871877!
    872878!--                Parameterized turbulence effects on autoconversion (Seifert,
     
    20412047!--       (see: Bott + Trautmann, 2002, Atm. Res., 64)
    20422048          k_act  = 0.7_wp
     2049          activ  = 0.0_wp
    20432050
    20442051          IF ( sat >= 0.0 .AND. .NOT. curvature_solution_effects_bulk )  THEN
     
    22622269          nc_auto = MERGE ( nc_1d(k), nc_const, microphysics_morrison )
    22632270
    2264           IF ( qc_1d(k) > eps_sb )  THEN
     2271          IF ( qc_1d(k) > eps_sb  .AND.  nc_auto > eps_mr )  THEN
    22652272
    22662273             k_au = k_cc / ( 20.0_wp * x0 )
     
    22682275!--          Intern time scale of coagulation (Seifert and Beheng, 2006):
    22692276!--          (1.0_wp - qc(k,j,i) / ( qc(k,j,i) + qr_1d(k) ))
    2270              tau_cloud = 1.0_wp - qc_1d(k) / ( qr_1d(k) + qc_1d(k) )
     2277             tau_cloud = MAX( 1.0_wp - qc_1d(k) / ( qr_1d(k) + qc_1d(k) ),     &
     2278                              0.0_wp )
    22712279!
    22722280!--          Universal function for autoconversion process
Note: See TracChangeset for help on using the changeset viewer.