Changeset 2645 for LMDZ5


Ignore:
Timestamp:
Oct 4, 2016, 5:49:13 PM (8 years ago)
Author:
musat
Message:

Add histwrite for scalar outputs in LMDZ.
The scalars (GES, rsun*, solaire and Earths' orbital params)
outputed before in paramLMDZ_phy.nc are now in
histmth.nc file.

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/iophy.F90

    r2529 r2645  
    1717#ifdef CPP_XIOS
    1818  INTERFACE histwrite_phy
    19     MODULE PROCEDURE histwrite2d_phy,histwrite3d_phy,histwrite2d_phy_old,histwrite3d_phy_old,histwrite2d_xios,histwrite3d_xios
     19    MODULE PROCEDURE histwrite2d_phy,histwrite3d_phy,histwrite2d_phy_old,histwrite3d_phy_old,histwrite2d_xios,histwrite3d_xios,histwrite0d_xios
    2020  END INTERFACE
    2121#else
     
    13311331  IF (prt_level >= 10) write(lunout,*)'End histrwrite3d_xios ',field_name
    13321332  END SUBROUTINE histwrite3d_xios
     1333
     1334  SUBROUTINE histwrite0d_xios(field_name, field)
     1335  USE xios, only: xios_send_scalar
     1336  IMPLICIT NONE
     1337
     1338    CHARACTER(LEN=*), INTENT(IN) :: field_name
     1339    REAL, INTENT(IN) :: field ! --> scalar
     1340
     1341!$OMP MASTER
     1342   CALL xios_send_scalar(field_name, field)
     1343!$OMP END MASTER
     1344
     1345  END SUBROUTINE histwrite0d_xios
    13331346#endif
    13341347end module iophy
  • LMDZ5/trunk/libf/phylmd/phys_output_write_mod.F90

    r2630 r2645  
    312312    USE phys_cal_mod, only : mth_len
    313313
     314#ifdef CPP_RRTM
     315    USE YOESW, ONLY : RSUN
     316#endif
    314317
    315318    IMPLICIT NONE
     
    355358#endif
    356359    REAL, PARAMETER :: un_jour=86400.
     360    INTEGER ISW
     361    CHARACTER*1 ch1
    357362
    358363    ! On calcul le nouveau tau:
     
    403408       CALL histwrite_phy(o_contfracOR, pctsrf(:,is_ter))
    404409       CALL histwrite_phy(o_aireTER, paire_ter)
     410!
     411#ifdef CPP_XIOS
     412       CALL histwrite_phy("R_ecc",R_ecc)
     413       CALL histwrite_phy("R_peri",R_peri)
     414       CALL histwrite_phy("R_incl",R_incl)
     415       CALL histwrite_phy("solaire",solaire)
     416!
     417#ifdef CPP_RRTM
     418      IF (iflag_rrtm.EQ.1) THEN
     419        DO ISW=1, NSW
     420          WRITE(ch1,'(i1)') ISW
     421!         zx_tmp_0d=RSUN(ISW)
     422!         CALL histwrite_phy("rsun"//ch1,zx_tmp_0d)
     423          CALL histwrite_phy("rsun"//ch1,RSUN(ISW))
     424        ENDDO
     425      ENDIF
     426#endif
     427!
     428       CALL histwrite_phy("co2_ppm",co2_ppm)
     429       CALL histwrite_phy("CH4_ppb",CH4_ppb)
     430       CALL histwrite_phy("N2O_ppb",N2O_ppb)
     431       CALL histwrite_phy("CFC11_ppt",CFC11_ppt)
     432       CALL histwrite_phy("CFC12_ppt",CFC12_ppt)
     433!
     434#endif
     435
    405436!!! Champs 2D !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    406437! Simulateur AIRS
Note: See TracChangeset for help on using the changeset viewer.