Ignore:
Timestamp:
Feb 5, 2021, 10:00:13 AM (3 years ago)
Author:
musat
Message:

Nouveaux calculs a 2m et 10m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSL-CM6A-MR/libf/phylmd/phys_output_write_mod.F90

    r3702 r3823  
    3838         o_t2m, o_t2m_min, o_t2m_max, &
    3939         o_t2m_min_mon, o_t2m_max_mon, &
     40         o_nt2mout, o_nt2moutfg, &
     41         o_nq2mout, o_nq2moutfg, &
     42         o_nu2mout, o_nu2moutfg, &
    4043         o_q2m, o_ustar, o_u10m, o_v10m, &
    4144         o_wind10m, o_wind10max, o_wind100m, o_gusts, o_sicf, &
     
    249252
    250253    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, &
    252          t2m_min_mon, t2m_max_mon, evap, &
     254         zn2mout, t2m_min_mon, t2m_max_mon, evap, &
    253255         l_mixmin,l_mix, &
    254256         zu10m, zv10m, zq2m, zustar, zxqsurf, &
     
    676678       CALL histwrite_phy(o_slp, slp)
    677679       CALL histwrite_phy(o_tsol, zxtsol)
    678        CALL histwrite_phy(o_t2m, zt2m_cor)
    679        CALL histwrite_phy(o_t2m_min, zt2m_cor)
    680        CALL histwrite_phy(o_t2m_max, zt2m_cor)
     680       CALL histwrite_phy(o_t2m, zt2m)
     681       CALL histwrite_phy(o_t2m_min, zt2m)
     682       CALL histwrite_phy(o_t2m_max, zt2m)
    681683       CALL histwrite_phy(o_t2m_max_mon, t2m_max_mon)
    682684       CALL histwrite_phy(o_t2m_min_mon, t2m_min_mon)
     
    684686       IF (vars_defined) THEN
    685687          DO i=1, klon
    686              zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i))
     688             zx_tmp_fi2d(i)=real(zn2mout(i,1))
     689          ENDDO
     690       ENDIF
     691       CALL histwrite_phy(o_nt2mout, zx_tmp_fi2d)
     692
     693       IF (vars_defined) THEN
     694          DO i=1, klon
     695             zx_tmp_fi2d(i)=real(zn2mout(i,2))
     696          ENDDO
     697       ENDIF
     698       CALL histwrite_phy(o_nt2moutfg, zx_tmp_fi2d)
     699
     700       IF (vars_defined) THEN
     701          DO i=1, klon
     702             zx_tmp_fi2d(i)=real(zn2mout(i,3))
     703          ENDDO
     704       ENDIF
     705       CALL histwrite_phy(o_nq2mout, zx_tmp_fi2d)
     706
     707       IF (vars_defined) THEN
     708          DO i=1, klon
     709             zx_tmp_fi2d(i)=real(zn2mout(i,4))
     710          ENDDO
     711       ENDIF
     712       CALL histwrite_phy(o_nq2moutfg, zx_tmp_fi2d)
     713
     714       IF (vars_defined) THEN
     715          DO i=1, klon
     716             zx_tmp_fi2d(i)=real(zn2mout(i,5))
     717          ENDDO
     718       ENDIF
     719       CALL histwrite_phy(o_nu2mout, zx_tmp_fi2d)
     720
     721       IF (vars_defined) THEN
     722          DO i=1, klon
     723             zx_tmp_fi2d(i)=real(zn2mout(i,6))
     724          ENDDO
     725       ENDIF
     726       CALL histwrite_phy(o_nu2moutfg, zx_tmp_fi2d)
     727
     728       IF (vars_defined) THEN
     729          DO i=1, klon
     730             zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i))
    687731          ENDDO
    688732       ENDIF
     
    691735       IF (vars_defined) THEN
    692736          DO i=1, klon
    693              zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i))
     737             zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i))
    694738          ENDDO
    695739       ENDIF
     
    771815       ENDIF
    772816       CALL histwrite_phy(o_sicf, zx_tmp_fi2d)
    773        CALL histwrite_phy(o_q2m, zq2m_cor)
    774        CALL histwrite_phy(o_ustar, zustar)
    775        CALL histwrite_phy(o_u10m, zu10m_cor)
    776        CALL histwrite_phy(o_v10m, zv10m_cor)
     817       CALL histwrite_phy(o_q2m, zq2m)
     818       IF (vars_defined) zx_tmp_fi2d = zustar
     819       CALL histwrite_phy(o_ustar, zx_tmp_fi2d)
     820       CALL histwrite_phy(o_u10m, zu10m)
     821       CALL histwrite_phy(o_v10m, zv10m)
    777822
    778823       IF (vars_defined) THEN
     
    14121457!       CALL histwrite_phy(o_rh2m_max, zx_tmp_fi2d)
    14131458
    1414        CALL histwrite_phy(o_qsat2m, zqsat2m_cor)
     1459       CALL histwrite_phy(o_qsat2m, qsat2m)
    14151460       CALL histwrite_phy(o_tpot, tpot)
    14161461       CALL histwrite_phy(o_tpote, tpote)
Note: See TracChangeset for help on using the changeset viewer.