Ignore:
Timestamp:
Mar 24, 2022, 4:02:39 PM (3 years ago)
Author:
dbardet
Message:

Thermal plume model: Fix an index error for calculating the maximal authorized interlayer mass flux of the plume.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/thermcell_flux.F90

    r2480 r2647  
    278278         DO ig=1,ngrid
    279279            fff0 = fm(ig,l+1)
    280             fmax = rhobarz(ig,l+1) * zw2(ig,l+1) * alpha_max
     280            fmax = rhobarz(ig,l) * zw2(ig,l+1) * alpha_max
     281            ! rhobarz is an arithmetic mean of the mid-layer rho, and thus evaluated
     282            ! at the interlayer
     283            ! so rhobarz(ig,l) can be taken to evaluate the inter-layer maximal
     284            ! authorized mass flux fmax (with the plume vertical velocity zw2).
    281285!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    282286! AB: The plume mass flux can be reduced.
Note: See TracChangeset for help on using the changeset viewer.