Changeset 2795 for palm/trunk/SOURCE/pmc_interface_mod.f90
- Timestamp:
- Feb 7, 2018 2:48:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r2773 r2795 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix in computation of the anterpolation under-relaxation functions. 28 ! 29 ! 2773 2018-01-30 14:12:54Z suehring 27 30 ! - Nesting for chemical species 28 31 ! - Bugfix in setting boundary condition at downward-facing walls for passive … … 2632 2635 IF ( nesting_mode /= 'vertical' ) THEN 2633 2636 DO ii = icl, icr 2634 IF ( nest_bound_l ) THEN2637 IF ( ifuu(ii) < ( nx + 1 ) / 2 ) THEN 2635 2638 xi = ( MAX( 0.0_wp, ( cg%coord_x(ii) - & 2636 lower_left_coord_x ) ) / anterp_relax_length_l )**4 2637 ELSEIF ( nest_bound_r ) THEN 2639 lower_left_coord_x ) ) / anterp_relax_length_l )**4 2640 frax(ii) = xi / ( 1.0_wp + xi ) 2641 ELSE 2638 2642 xi = ( MAX( 0.0_wp, ( lower_left_coord_x + ( nx + 1 ) * dx - & 2639 2643 cg%coord_x(ii) ) ) / & 2640 2644 anterp_relax_length_r )**4 2645 frax(ii) = xi / ( 1.0_wp + xi ) 2646 ENDIF 2647 ENDDO 2648 2649 2650 DO jj = jcs, jcn 2651 IF ( jfuv(jj) < ( ny + 1 ) / 2 ) THEN 2652 eta = ( MAX( 0.0_wp, ( cg%coord_y(jj) - & 2653 lower_left_coord_y ) ) / anterp_relax_length_s )**4 2654 fray(jj) = eta / ( 1.0_wp + eta ) 2641 2655 ELSE 2642 xi = 999999.9_wp2643 ENDIF2644 frax(ii) = xi / ( 1.0_wp + xi )2645 ENDDO2646 2647 2648 DO jj = jcs, jcn2649 IF ( nest_bound_s ) THEN2650 eta = ( MAX( 0.0_wp, ( cg%coord_y(jj) - &2651 lower_left_coord_y ) ) / anterp_relax_length_s )**42652 ELSEIF ( nest_bound_n ) THEN2653 2656 eta = ( MAX( 0.0_wp, ( lower_left_coord_y + ( ny + 1 ) * dy - & 2654 2657 cg%coord_y(jj)) ) / & 2655 2658 anterp_relax_length_n )**4 2656 ELSE 2657 eta = 999999.9_wp 2659 fray(jj) = eta / ( 1.0_wp + eta ) 2658 2660 ENDIF 2659 fray(jj) = eta / ( 1.0_wp + eta )2660 2661 ENDDO 2661 2662 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.