Ignore:
Timestamp:
Nov 10, 2016, 6:35:57 AM (8 years ago)
Author:
emillour
Message:

Generic GCM:

Improving XIOS outputs, add the scalar case.
EM

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r1623 r1626  
    21522152      ! Send fields to XIOS: (NB these fields must also be defined as
    21532153      ! <field id="..." /> in context_lmdz_physics.xml to be correctly used)
     2154      CALL send_xios_field("ls",zls)
     2155     
    21542156      CALL send_xios_field("ps",ps)
    21552157      CALL send_xios_field("area",cell_area)
  • trunk/LMDZ.GENERIC/libf/phystd/xios_output_mod.F90

    r1622 r1626  
    1111
    1212 INTERFACE send_xios_field
    13     MODULE PROCEDURE histwrite2d_xios,histwrite3d_xios
     13    MODULE PROCEDURE histwrite0d_xios,histwrite2d_xios,histwrite3d_xios
    1414 END INTERFACE
    1515 
     
    151151!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    152152
     153  SUBROUTINE histwrite0d_xios(field_name,field)
     154  USE xios, ONLY: xios_send_field
     155  USE print_control_mod, ONLY: prt_level, lunout
     156  IMPLICIT NONE
     157 
     158    CHARACTER(LEN=*), INTENT(IN) :: field_name
     159    REAL, INTENT(IN) :: field
     160   
     161    IF (prt_level >= 10) WRITE(lunout,*)'Begin histrwrite0d_xios ',trim(field_name)
     162   
     163!$OMP MASTER
     164    CALL xios_send_field(field_name,field)
     165!$OMP END MASTER
     166   
     167    IF (prt_level >= 10) WRITE(lunout,*)'End histrwrite0d_xios ',trim(field_name)
     168   
     169  END SUBROUTINE histwrite0d_xios
     170
     171!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     172
    153173  SUBROUTINE histwrite2d_xios(field_name,field)
    154174  USE dimphy, only: klon
Note: See TracChangeset for help on using the changeset viewer.