Changeset 1707 for palm


Ignore:
Timestamp:
Nov 2, 2015 3:24:52 PM (9 years ago)
Author:
maronga
Message:

bugfix: initialization of Obukhov length from 1d precursor in case of neutral stratification

File:
1 edited

Legend:

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

    r1692 r1707  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Bugfix: transfer of Richardson number from 1D model to Obukhov length caused
     22! devision by zero in neutral stratification
    2223!
    2324! Former revisions:
     
    721722
    722723             IF ( constant_flux_layer )  THEN
    723                 ol   = ( zu(nzb+1) - zw(nzb) ) / rif1d(nzb+1)
     724                ol   = ( zu(nzb+1) - zw(nzb) ) / ( rif1d(nzb+1) + 1.0E-20_wp )
    724725                ts   = 0.0_wp  ! could actually be computed more accurately in the
    725726                               ! 1D model. Update when opportunity arises.
     
    760761
    761762!
    762 !--       inside buildings set velocities back to zero
    763763          IF ( topography /= 'flat' )  THEN
    764764             DO  i = nxl-1, nxr+1
Note: See TracChangeset for help on using the changeset viewer.