Ignore:
Timestamp:
Sep 18, 2017 1:37:24 PM (7 years ago)
Author:
suehring
Message:

Bugfixes concerning top fluxes and TKE production

File:
1 edited

Legend:

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

    r2329 r2478  
    2525! -----------------
    2626! $Id$
     27! Bugfix, consider case where no constant-flux layer and no surfaces fluxes
     28! are used
     29!
     30! 2329 2017-08-03 14:24:56Z knoop
    2731! Bugfix: added division by density as kinematic fluxes are needed
    2832!
     
    432436             ENDDO
    433437
    434           ELSEIF ( use_surface_fluxes )  THEN
     438          ELSE
    435439
    436440             DO  j = nys, nyn
     
    11821186          ENDDO
    11831187
    1184        ELSEIF ( use_surface_fluxes )  THEN
     1188       ELSE
    11851189!
    11861190!--       Calculate TKE production by shear. Here, no additional
     
    12351239!--                the bottom and top surface layer
    12361240                   DO  k = nzb+1, nzt
     1241 
    12371242                      tend(k,j,i) = tend(k,j,i) +                              &
    12381243                                    kh(k,j,i) * g / rho_reference *            &
     
    12411246                                      MERGE( 1.0_wp, 0.0_wp,                   &
    12421247                                             BTEST( wall_flags_0(k,j,i), 0 )   &
    1243                                            )                                  
     1248                                           )                   
    12441249                   ENDDO
    12451250
     
    13231328                                      MERGE( 1.0_wp, 0.0_wp,                   &
    13241329                                             BTEST( wall_flags_0(k,j,i), 0 )   &
    1325                                            )
     1330                                           )           
    13261331                   ENDDO
    13271332
Note: See TracChangeset for help on using the changeset viewer.