Ignore:
Timestamp:
Feb 5, 2021, 1:23:18 PM (3 years ago)
Author:
musat
Message:

Nouveaux calculs 2m/10m activables par iflag_new_t2mq2m=1
Valeur par defaut iflag_new_t2mq2m=0 (<=> anciens calculs CMIP6)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/phys_output_write_mod.F90

    r3616 r3826  
    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, &
     
    247250
    248251    USE phys_local_var_mod, ONLY: zxfluxlat, slp, ptstar, pt0, zxtsol, zt2m, &
    249          zt2m_cor,zq2m_cor,zu10m_cor,zv10m_cor, &
    250          t2m_min_mon, t2m_max_mon, evap, &
     252         zn2mout, t2m_min_mon, t2m_max_mon, evap, &
    251253         l_mixmin,l_mix, &
    252254         zu10m, zv10m, zq2m, zustar, zxqsurf, &
     
    669671       CALL histwrite_phy(o_slp, slp)
    670672       CALL histwrite_phy(o_tsol, zxtsol)
    671        CALL histwrite_phy(o_t2m, zt2m_cor)
    672        CALL histwrite_phy(o_t2m_min, zt2m_cor)
    673        CALL histwrite_phy(o_t2m_max, zt2m_cor)
     673       CALL histwrite_phy(o_t2m, zt2m)
     674       CALL histwrite_phy(o_t2m_min, zt2m)
     675       CALL histwrite_phy(o_t2m_max, zt2m)
    674676       CALL histwrite_phy(o_t2m_max_mon, t2m_max_mon)
    675677       CALL histwrite_phy(o_t2m_min_mon, t2m_min_mon)
     
    677679       IF (vars_defined) THEN
    678680          DO i=1, klon
    679              zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i))
     681             zx_tmp_fi2d(i)=real(zn2mout(i,1))
     682          ENDDO
     683       ENDIF
     684       CALL histwrite_phy(o_nt2mout, zx_tmp_fi2d)
     685
     686       IF (vars_defined) THEN
     687          DO i=1, klon
     688             zx_tmp_fi2d(i)=real(zn2mout(i,2))
     689          ENDDO
     690       ENDIF
     691       CALL histwrite_phy(o_nt2moutfg, zx_tmp_fi2d)
     692
     693       IF (vars_defined) THEN
     694          DO i=1, klon
     695             zx_tmp_fi2d(i)=real(zn2mout(i,3))
     696          ENDDO
     697       ENDIF
     698       CALL histwrite_phy(o_nq2mout, zx_tmp_fi2d)
     699
     700       IF (vars_defined) THEN
     701          DO i=1, klon
     702             zx_tmp_fi2d(i)=real(zn2mout(i,4))
     703          ENDDO
     704       ENDIF
     705       CALL histwrite_phy(o_nq2moutfg, zx_tmp_fi2d)
     706
     707       IF (vars_defined) THEN
     708          DO i=1, klon
     709             zx_tmp_fi2d(i)=real(zn2mout(i,5))
     710          ENDDO
     711       ENDIF
     712       CALL histwrite_phy(o_nu2mout, zx_tmp_fi2d)
     713
     714       IF (vars_defined) THEN
     715          DO i=1, klon
     716             zx_tmp_fi2d(i)=real(zn2mout(i,6))
     717          ENDDO
     718       ENDIF
     719       CALL histwrite_phy(o_nu2moutfg, zx_tmp_fi2d)
     720
     721       IF (vars_defined) THEN
     722          DO i=1, klon
     723             zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i))
    680724          ENDDO
    681725       ENDIF
     
    684728       IF (vars_defined) THEN
    685729          DO i=1, klon
    686              zx_tmp_fi2d(i)=SQRT(zu10m_cor(i)*zu10m_cor(i)+zv10m_cor(i)*zv10m_cor(i))
     730             zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i))
    687731          ENDDO
    688732       ENDIF
     
    721765       ENDIF
    722766       CALL histwrite_phy(o_sicf, zx_tmp_fi2d)
    723        CALL histwrite_phy(o_q2m, zq2m_cor)
    724        CALL histwrite_phy(o_ustar, zustar)
    725        CALL histwrite_phy(o_u10m, zu10m_cor)
    726        CALL histwrite_phy(o_v10m, zv10m_cor)
     767       CALL histwrite_phy(o_q2m, zq2m)
     768       IF (vars_defined) zx_tmp_fi2d = zustar
     769       CALL histwrite_phy(o_ustar, zx_tmp_fi2d)
     770       CALL histwrite_phy(o_u10m, zu10m)
     771       CALL histwrite_phy(o_v10m, zv10m)
    727772
    728773       IF (vars_defined) THEN
Note: See TracChangeset for help on using the changeset viewer.