Ignore:
Timestamp:
Jun 13, 2016 1:37:44 PM (8 years ago)
Author:
suehring
Message:

deallocation of unused particle memory, formatting adjustments

File:
1 edited

Legend:

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

    r1930 r1936  
    1919! Current revisions:
    2020! ------------------
    21 !  
     21! Formatting adjustments
    2222!
    2323! Former revisions:
     
    264264          jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy
    265265
    266           IF ( constant_flux_layer .AND. zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p )  THEN
     266          IF ( constant_flux_layer  .AND.                                      &
     267               zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p )  THEN
    267268!
    268269!--          Resolved-scale horizontal particle velocity is zero below z0.
     
    272273!
    273274!--             Determine the sublayer. Further used as index.
    274                 height_p     = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global )            &
    275                                      * REAL( number_of_sublayers, KIND=wp ) &
     275                height_p = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global ) &
     276                                     * REAL( number_of_sublayers, KIND=wp )    &
    276277                                     * d_z_p_z0
    277278!
     
    340341          ilog = ( particles(n)%x + 0.5_wp * dx ) * ddx
    341342          jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy
    342           IF ( constant_flux_layer .AND. zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p )  THEN
     343          IF ( constant_flux_layer  .AND.                                      &
     344               zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p )  THEN
    343345
    344346             IF ( zv(n) - zw(nzb_s_inner(jlog,ilog)) < z0_av_global )  THEN
     
    352354!--             topography particle on u-grid can be above surface-layer height,
    353355!--             whereas it can be below on v-grid.
    354                 height_p     = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global ) &
    355                                   * REAL( number_of_sublayers, KIND=wp )    &
     356                height_p = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global ) &
     357                                  * REAL( number_of_sublayers, KIND=wp )       &
    356358                                  * d_z_p_z0
    357359!
     
    367369!--             friction velocity can become very small, resulting in a too
    368370!--             large particle speed.
    369                 us_int   = MAX( 0.5_wp * ( us(jlog,ilog) + us(jlog-1,ilog) ), &
     371                us_int   = MAX( 0.5_wp * ( us(jlog,ilog) + us(jlog-1,ilog) ),  &
    370372                                0.01_wp )   
    371373!
     
    376378!--             as sensitivity studies revealed no significant effect of
    377379!--             using the neutral solution also for un/stable situations.
    378                 v_int(n) = -vsws(jlog,ilog) / ( us_int * kappa + 1E-10_wp )          &
     380                v_int(n) = -vsws(jlog,ilog) / ( us_int * kappa + 1E-10_wp )    &
    379381                         * log_z_z0_int - v_gtrans
    380382
Note: See TracChangeset for help on using the changeset viewer.