Changeset 856
- Timestamp:
- Mar 20, 2012 6:29:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/advec_ws.f90
r802 r856 4 4 ! Current revisions: 5 5 ! ------------------ 6 ! Bug concerning numerical dissipation at the first grid level. Function 7 ! diss_2nd always returns zero. Because diss_2nd will be replaced by numerical 8 ! dissipation which is more consistent to the WS-schemes, the return value 9 ! is set to zero for now. 6 10 ! 7 11 ! Former revisions: … … 3224 3228 REAL, INTENT(IN) :: v2, v1, v0, vm1, vm2, vel_comp, factor, & 3225 3229 grid 3226 REAL :: value_min_m, value_max_m, value_min, value_max, & 3227 value_min_p, value_max_p, diss_m, diss_0, diss_p 3228 3229 value_min_m = MIN( v0, vm1, vm2 ) 3230 value_max_m = MAX( v0, vm1, vm2 ) 3231 value_min = MIN( v1, v0, vm2 ) 3232 value_max = MAX( v1, v0, vm2 ) 3233 value_min_p = MIN( v2, v1, v0 ) 3234 value_max_p = MAX( v2, v1, v0 ) 3235 3236 diss_m = MAX( 0.0, vm1 - value_max_m ) + MIN( 0.0, vm1 - value_min_m ) 3237 diss_0 = MAX( 0.0, v0 - value_max ) + MIN( 0.0, v0 - value_min ) 3238 diss_p = MAX( 0.0, v1 - value_max_p ) + MIN( 0.0, v1 - value_min_p ) 3239 3240 dissip = ABS( vel_comp ) * ( diss_p - 2.0 * diss_0 + diss_m ) & 3241 * grid**2 * factor 3230 3231 dissip = 0.0 3242 3232 3243 3233 END FUNCTION diss_2nd
Note: See TracChangeset
for help on using the changeset viewer.