Changeset 1915 for palm/trunk


Ignore:
Timestamp:
May 27, 2016 11:05:02 AM (8 years ago)
Author:
suehring
Message:

Bugfix: avoid segmentation fault in case of most_method = 'circular' at first timstep

File:
1 edited

Legend:

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

    r1851 r1915  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Bugfix: avoid segmentation fault in case of most_method = 'circular' at first
     22! timestep
    2223!
    2324! Former revisions:
     
    718719!--             consequence would result in very large shear stresses and very
    719720!--             small momentum fluxes (both are generally unrealistic).
    720                 IF ( ( z_mo / ol(j,i) ) < zeta_min )  ol(j,i) = z_mo / zeta_min
    721                 IF ( ( z_mo / ol(j,i) ) > zeta_max )  ol(j,i) = z_mo / zeta_max
     721                IF ( ( z_mo / ( ol(j,i) + 1E-30_wp ) ) < zeta_min )  ol(j,i) = z_mo / zeta_min
     722                IF ( ( z_mo / ( ol(j,i) + 1E-30_wp ) ) > zeta_max )  ol(j,i) = z_mo / zeta_max
    722723
    723724             ENDDO
Note: See TracChangeset for help on using the changeset viewer.