Ignore:
Timestamp:
Nov 12, 2018, 1:52:29 PM (6 years ago)
Author:
Laurent Fairhead
Message:

Inclusion of Yann's latest (summer/fall 2018) modifications for
convergence of DYNAMICO/LMDZ physics
YM/LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/DYNAMICO-conv/libf/misc/wxios.F90

    r3411 r3413  
    152152!$OMP MASTER
    153153        !Initialisation du contexte:
     154        !!CALL xios_context_initialize(g_ctx_name, g_comm)
    154155        CALL xios_context_initialize(g_ctx_name, COMM_LMDZ_PHY)
    155156        CALL xios_get_handle(g_ctx_name, xios_ctx)    !Récupération
     
    301302        CALL xios_set_domain_attr_hdl(dom, nj_glo=nbp_lat, jbegin=jj_begin-1, nj=jj_nb, data_dim=2)
    302303        CALL xios_set_domain_attr_hdl(dom, lonvalue_1d=io_lon(1:nbp_lon), latvalue_1d=io_lat(jj_begin:jj_end))
     304        CALL xios_set_domain_attr("dom_out", domain_ref=dom_id)
    303305
    304306        IF (.NOT.is_sequential) THEN
     
    332334        USE mod_phys_lmdz_para
    333335        USE nrtype, ONLY : PI
     336        USE ioipsl_getin_p_mod, ONLY : getin_p
    334337        IMPLICIT NONE
    335338        CHARACTER(len=*),INTENT(IN) :: dom_id ! domain identifier
     
    339342        REAL :: boundslat_mpi(klon_mpi,nvertex)
    340343        INTEGER :: ind_cell_glo_mpi(klon_mpi)
    341         TYPE(xios_domaingroup) :: dom
    342 
     344        TYPE(xios_domain) :: dom
     345        LOGICAL :: remap_output
    343346
    344347        CALL gather_omp(longitude*180/PI,lon_mpi)
     
    348351        CALL gather_omp(ind_cell_glo,ind_cell_glo_mpi)
    349352       
     353        remap_output=.TRUE.
     354        CALL getin_p("remap_output",remap_output)
    350355
    351356!$OMP MASTER
    352         CALL xios_get_domaingroup_handle(dom_id, dom)
     357        CALL xios_get_domain_handle(dom_id, dom)
    353358       
    354359        !On parametrise le domaine:
     
    357362                           bounds_lon_1d=TRANSPOSE(boundslon_mpi), bounds_lat_1d=TRANSPOSE(boundslat_mpi) )
    358363        CALL xios_set_attr(dom, i_index=ind_cell_glo_mpi(:)-1)
     364        IF (remap_output) THEN
     365          CALL xios_set_domain_attr("dom_out", domain_ref="dom_regular")
     366          CALL xios_set_fieldgroup_attr("dom_out", domain_ref="dom_regular")
     367          CALL xios_set_fieldgroup_attr("remap_expr", expr="@this_ref")
     368        ENDIF
    359369!$OMP END MASTER
    360370
Note: See TracChangeset for help on using the changeset viewer.