- Timestamp:
- Mar 3, 2024, 2:34:25 AM (9 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_wake.F90
r4841 r4842 319 319 REAL, DIMENSION (klon) :: h_zzz 320 320 321 !print*,'WAKE LJYF o'321 !print*,'WAKE LJYFz' 322 322 323 323 ! ------------------------------------------------------------------------- … … 2422 2422 USE lmdz_wake_ini , ONLY : RG 2423 2423 USE lmdz_wake_ini , ONLY : hwmin 2424 USE lmdz_wake_ini , ONLY : iflag_wk_new_ptop 2424 2425 2425 2426 IMPLICIT NONE … … 2457 2458 REAL :: ddd!! 2458 2459 2459 LOGICAL :: new_ptop2460 2460 2461 2461 INTEGER, SAVE :: ipas=0 … … 2471 2471 !print*,'compte=',compte 2472 2472 2473 new_ptop=.false.2474 2475 2476 2473 ! Determine Ptop from buoyancy integral 2477 2474 ! --------------------------------------- … … 2589 2586 ! nouveau calcul de hw et ptop 2590 2587 ! ----------------------------------------------------------------------- 2591 if ( new_ptop) then2588 if (iflag_wk_new_ptop>0) then 2592 2589 2593 2590 epsil = 0.05 ! 5 pour cent … … 2611 2608 endif 2612 2609 int_dth(i,k) = int_dth(i,k-1) + ddd 2610 !ELSE 2611 ! int_dth(i,k) = 0. 2613 2612 END IF 2614 2613 END DO … … 2621 2620 IF (wk_adv(i)) THEN 2622 2621 frac_int_dth(i)=(1.-epsil)*int_dth(i,k_ptop_provis(i)) 2622 !ELSE 2623 ! frac_int_dth(i)=0. 2623 2624 ENDIF 2624 2625 ENDDO … … 2626 2627 DO i =1, klon 2627 2628 ! print*,ipas,'yyy ',k,int_dth(i,k),frac_int_dth(i) 2628 IF (wk_adv(i) .AND. int_dth(i,k)>=frac_int_dth(i)) THEN 2629 ktop1(i) = min(k, k_ptop_provis(i)) 2630 !print*,ipas,'yyy ktop1= ',ktop1 2631 END if 2629 IF (wk_adv(i)) THEN 2630 IF (int_dth(i,k)>=frac_int_dth(i)) THEN 2631 ktop1(i) = min(k, k_ptop_provis(i)) 2632 !print*,ipas,'yyy ktop1= ',ktop1 2633 ENDIF 2634 ENDIF 2632 2635 END DO 2633 2636 END DO … … 2679 2682 2680 2683 endif 2684 2685 if (iflag_wk_new_ptop==2) then 2686 do i=1,klon 2687 ptop(i)=ptop1(i) 2688 ktop(i)=ktop1(i) 2689 hw_(i)=h_zzz(i) 2690 enddo 2691 endif 2692 2681 2693 2682 2694 kupper = 0 -
LMDZ6/trunk/libf/phylmd/lmdz_wake_ini.F90
r4744 r4842 48 48 INTEGER, SAVE, PROTECTED :: iflag_wk_profile 49 49 !$OMP THREADPRIVATE(iflag_wk_profile) 50 51 INTEGER, SAVE, PROTECTED :: iflag_wk_new_ptop 52 !$OMP THREADPRIVATE(iflag_wk_new_ptop) 50 53 51 54 REAL, SAVE, PROTECTED :: wdensinit ! Minimum wake density used to restart wakes from a wake-free state … … 212 215 CALL getin_p('iflag_wk_profile',iflag_wk_profile) ! switch between wdens prescribed 213 216 ! and wdens prognostic 217 iflag_wk_profile = 0 218 CALL getin_p('iflag_wk_new_ptop',iflag_wk_new_ptop) 219 214 220 tau_cv = 4000. 215 221 CALL getin_p('tau_cv', tau_cv)
Note: See TracChangeset
for help on using the changeset viewer.