Ignore:
Timestamp:
Apr 4, 2014, 2:39:54 PM (10 years ago)
Author:
Ehouarn Millour
Message:

Further cleanup concerning XIOS (mainly about axes being defined as axes and not as groups of axes).
EM

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

Legend:

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

    r1907 r2002  
    340340  USE mod_phys_lmdz_para, only: gather_omp, grid1Dto2D_mpi, &
    341341                                jj_nb, klon_mpi
    342   USE wxios, only: wxios_write_2D
     342  USE xios, only: xios_send_field
    343343
    344344
     
    361361    CALL grid1Dto2D_mpi(buffer_omp,Field2d)
    362362   
    363     CALL wxios_write_2D(field_name, Field2d)
     363    CALL xios_send_field(field_name, Field2d)
    364364!$OMP END MASTER   
    365365
     
    376376  USE mod_phys_lmdz_para, only: gather_omp, grid1Dto2D_mpi, &
    377377                                jj_nb, klon_mpi
    378   USE wxios, only: wxios_write_3D
     378  USE xios, only: xios_send_field
    379379
    380380
     
    401401    CALL grid1Dto2D_mpi(buffer_omp,field3d)
    402402
    403     CALL wxios_write_3D(field_name, Field3d(:,:,1:klev))
     403    CALL xios_send_field(field_name, Field3d(:,:,1:nlev))
    404404!$OMP END MASTER   
    405405
  • LMDZ5/trunk/libf/phydev/physiq.F90

    r1907 r2002  
    2121
    2222#ifdef CPP_XIOS
     23      USE xios, ONLY: xios_update_calendar
    2324      USE wxios, only: wxios_add_vaxis, wxios_set_timestep, wxios_closedef, &
    24                        wxios_update_calendar, histwrite_phy
     25                       histwrite_phy
    2526#endif
    2627
     
    137138#ifdef CPP_XIOS
    138139!XIOS
    139     ! Déclaration de l'axe vertical du fichier:   
    140     CALL wxios_add_vaxis("presnivs", "histins", klev, presnivs)
    141 
    142     !Déclaration du pas de temps:
     140    ! Declare available vertical axes to be used in output files:   
     141    !CALL wxios_add_vaxis("presnivs", "dummy-not-used", klev, presnivs)
     142    CALL wxios_add_vaxis("presnivs", klev, presnivs)
     143
     144    ! Declare time step length (in s):
    143145    CALL wxios_set_timestep(dtime)
    144146
    145     !Finalisation du contexte:
     147    !Finalize the context:
    146148    CALL wxios_closedef()
    147149#endif
     
    187189!$OMP MASTER
    188190    !Increment XIOS time
    189     CALL wxios_update_calendar(itau)
     191    CALL xios_update_calendar(itau)
    190192!$OMP END MASTER
    191193!$OMP BARRIER
    192194
    193     !Send fields to XIOS:
     195    !Send fields to XIOS: (NB these fields must also be defined as
     196    ! <field id="..." /> in iodef.xml to be correctly used
    194197    CALL histwrite_phy("temperature",t)
     198    CALL histwrite_phy("temp_newton",temp_newton)
    195199    CALL histwrite_phy("u",u)
    196200    CALL histwrite_phy("v",v)
Note: See TracChangeset for help on using the changeset viewer.