Changeset 3489 for LMDZ6/trunk/libf
- Timestamp:
- Apr 26, 2019, 5:50:39 PM (6 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/phys_local_var_mod.F90
r3439 r3489 380 380 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: t2m_min_mon, t2m_max_mon 381 381 !$OMP THREADPRIVATE(t2m_min_mon, t2m_max_mon) 382 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zq2m_cor, zt2m_cor 383 !$OMP THREADPRIVATE(zq2m_cor, zt2m_cor) 384 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zu10m_cor, zv10m_cor 385 !$OMP THREADPRIVATE(zu10m_cor, zv10m_cor) 386 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zrh2m_cor, zqsat2m_cor 387 !$OMP THREADPRIVATE(zrh2m_cor, zqsat2m_cor) 382 388 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: weak_inversion 383 389 !$OMP THREADPRIVATE(weak_inversion) … … 752 758 ALLOCATE(zt2m_min_mon(klon), zt2m_max_mon(klon)) 753 759 ALLOCATE(t2m_min_mon(klon), t2m_max_mon(klon)) 760 ALLOCATE(zq2m_cor(klon), zt2m_cor(klon), zu10m_cor(klon), zv10m_cor(klon)) 761 ALLOCATE(zrh2m_cor(klon), zqsat2m_cor(klon)) 754 762 ALLOCATE(sens(klon), flwp(klon), fiwp(klon)) 755 763 ALLOCATE(alp_bl_conv(klon), alp_bl_det(klon)) … … 1046 1054 DEALLOCATE(zt2m_min_mon, zt2m_max_mon) 1047 1055 DEALLOCATE(t2m_min_mon, t2m_max_mon) 1056 DEALLOCATE(zq2m_cor, zt2m_cor, zu10m_cor, zv10m_cor) 1057 DEALLOCATE(zrh2m_cor, zqsat2m_cor) 1048 1058 DEALLOCATE(sens, flwp, fiwp) 1049 1059 DEALLOCATE(alp_bl_conv,alp_bl_det) -
LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90
r3480 r3489 249 249 250 250 USE phys_local_var_mod, ONLY: zxfluxlat, slp, ptstar, pt0, zxtsol, zt2m, & 251 zt2m_cor,zq2m_cor,zu10m_cor,zv10m_cor, zrh2m_cor, zqsat2m_cor, & 251 252 t2m_min_mon, t2m_max_mon, evap, & 252 253 l_mixmin,l_mix, & … … 665 666 CALL histwrite_phy(o_slp, slp) 666 667 CALL histwrite_phy(o_tsol, zxtsol) 667 CALL histwrite_phy(o_t2m, zt2m )668 CALL histwrite_phy(o_t2m_min, zt2m )669 CALL histwrite_phy(o_t2m_max, zt2m )668 CALL histwrite_phy(o_t2m, zt2m_cor) 669 CALL histwrite_phy(o_t2m_min, zt2m_cor) 670 CALL histwrite_phy(o_t2m_max, zt2m_cor) 670 671 CALL histwrite_phy(o_t2m_max_mon, t2m_max_mon) 671 672 CALL histwrite_phy(o_t2m_min_mon, t2m_min_mon) … … 673 674 IF (vars_defined) THEN 674 675 DO i=1, klon 675 zx_tmp_fi2d(i)=SQRT(zu10m (i)*zu10m(i)+zv10m(i)*zv10m(i))676 zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i)) 676 677 ENDDO 677 678 ENDIF … … 680 681 IF (vars_defined) THEN 681 682 DO i=1, klon 682 zx_tmp_fi2d(i)=SQRT(zu10m (i)*zu10m(i)+zv10m(i)*zv10m(i))683 zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i)) 683 684 ENDDO 684 685 ENDIF … … 693 694 ENDIF 694 695 CALL histwrite_phy(o_sicf, zx_tmp_fi2d) 695 CALL histwrite_phy(o_q2m, zq2m )696 CALL histwrite_phy(o_q2m, zq2m_cor) 696 697 CALL histwrite_phy(o_ustar, zustar) 697 CALL histwrite_phy(o_u10m, zu10m )698 CALL histwrite_phy(o_v10m, zv10m )698 CALL histwrite_phy(o_u10m, zu10m_cor) 699 CALL histwrite_phy(o_v10m, zv10m_cor) 699 700 700 701 IF (vars_defined) THEN … … 1330 1331 ! CALL histwrite_phy(o_rh2m_max, zx_tmp_fi2d) 1331 1332 1332 CALL histwrite_phy(o_qsat2m, qsat2m)1333 CALL histwrite_phy(o_qsat2m, zqsat2m_cor) 1333 1334 CALL histwrite_phy(o_tpot, tpot) 1334 1335 CALL histwrite_phy(o_tpote, tpote) -
LMDZ6/trunk/libf/phylmd/physiq_mod.F90
r3480 r3489 117 117 zustar, zu10m, zv10m, rh2m, qsat2m, & 118 118 zq2m, zt2m, weak_inversion, & 119 zq2m_cor,zt2m_cor,zu10m_cor,zv10m_cor, & ! pour corriger d'un bug 120 zrh2m_cor,zqsat2m_cor, & 119 121 zt2m_min_mon, zt2m_max_mon, & ! pour calcul_divers.h 120 122 t2m_min_mon, t2m_max_mon, & ! pour calcul_divers.h … … 593 595 ! gust-front in the grid cell. 594 596 !$OMP THREADPRIVATE(iflag_alp_wk_cond) 597 598 INTEGER, SAVE :: iflag_bug_t2m_ipslcm61=0 ! 599 !$OMP THREADPRIVATE(iflag_bug_t2m_ipslcm61) 600 INTEGER, SAVE :: iflag_bug_t2m_stab_ipslcm61=1 ! 601 !$OMP THREADPRIVATE(iflag_bug_t2m_stab_ipslcm61) 602 595 603 REAL t_w(klon,klev),q_w(klon,klev) ! temperature and moisture profiles in the wake region 596 604 REAL t_x(klon,klev),q_x(klon,klev) ! temperature and moisture profiles in the off-wake region … … 1295 1303 tau_gl=86400.*tau_gl 1296 1304 WRITE(lunout,*) 'debut physiq_mod tau_gl=',tau_gl 1305 1306 iflag_bug_t2m_ipslcm61 = 0 1307 CALL getin_p('iflag_bug_t2m_ipslcm61', iflag_bug_t2m_ipslcm61) 1308 iflag_bug_t2m_stab_ipslcm61 = 0 1309 CALL getin_p('iflag_bug_t2m_stab_ipslcm61', iflag_bug_t2m_stab_ipslcm61) 1297 1310 1298 1311 CALL getin_p('iflag_alp_wk_cond', iflag_alp_wk_cond) … … 2458 2471 ENDIF 2459 2472 2473 !add limitation for t,q at and wind at 10m 2474 if ( iflag_bug_t2m_ipslcm61 == 0 ) THEN 2475 CALL borne_var_surf( klon,klev,nbsrf, & 2476 iflag_bug_t2m_stab_ipslcm61, & 2477 t_seri(:,1),q_seri(:,1),u_seri(:,1),v_seri(:,1), & 2478 ftsol,zxqsurf,pctsrf,paprs, & 2479 t2m, q2m, u10m, v10m, & 2480 zt2m_cor, zq2m_cor, zu10m_cor, zv10m_cor, & 2481 zrh2m_cor, zqsat2m_cor) 2482 ELSE 2483 zt2m_cor(:)=zt2m(:) 2484 zq2m_cor(:)=zq2m(:) 2485 zu10m_cor(:)=zu10m(:) 2486 zv10m_cor(:)=zv10m(:) 2487 ENDIF 2460 2488 2461 2489 !---------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.