Changeset 1888 for palm/trunk/SOURCE


Ignore:
Timestamp:
Apr 21, 2016 12:20:49 PM (9 years ago)
Author:
suehring
Message:

Bugfix concerning logarithmic interpolation of particle speed

File:
1 edited

Legend:

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

    r1823 r1888  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Bugfix concerning logarithmic interpolation of particle speed
    2222!
    2323! Former revisions:
     
    273273!--             using the neutral solution also for un/stable situations.
    274274!--             Calculated left and bottom index on u grid.
    275                 us_int = 0.5_wp * ( us(j,i) + us(j,i-1) ) 
    276 
    277                 u_int  = -usws(j,i) / ( us_int * kappa + 1E-10_wp )           &
     275                us_int   = 0.5_wp * ( us(j,i) + us(j,i-1) ) 
     276
     277                u_int(n) = -usws(j,i) / ( us_int * kappa + 1E-10_wp )          &
    278278                         * log_z_z0_int(n) - u_gtrans
    279279
     
    331331!--             using the neutral solution also for un/stable situations.
    332332!--             Calculated left and bottom index on v grid.
    333                 us_int = 0.5_wp * ( us(j,i) + us(j-1,i) )   
    334 
    335                 v_int  = -vsws(j,i) / ( us_int * kappa + 1E-10_wp )             &
     333                us_int   = 0.5_wp * ( us(j,i) + us(j-1,i) )   
     334
     335                v_int(n) = -vsws(j,i) / ( us_int * kappa + 1E-10_wp )          &
    336336                         * log_z_z0_int(n) - v_gtrans
    337337             ENDIF
Note: See TracChangeset for help on using the changeset viewer.