Ignore:
Timestamp:
Aug 30, 2013, 10:47:10 AM (11 years ago)
Author:
Ehouarn Millour
Message:

Implémentation des sorties XIOS dans LMDZ. Activation via -cpp CPP_XIOS.
ATTENTION: un problème de raccord subsiste en mode MPI !
UG
................................
Adding XIOS output to LMDZ. Activated by the CPP_XIOS key.
WARNING: buggy for now in MPI mode.
UG

File:
1 edited

Legend:

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

    r1759 r1852  
    1919      USE mod_phys_lmdz_para, only : jj_nb
    2020      USE phys_state_var_mod, only : phys_state_var_init
     21
     22#ifdef CPP_XIOS
     23      USE wxios
     24#endif
    2125
    2226      IMPLICIT none
     
    101105  dtime=pdtphys
    102106  call histbeg_phy("histins.nc",itau0,zjulian,dtime,nhori,nid_hist)
     107
     108
     109
    103110!$OMP MASTER
     111
     112
     113
    104114  ! define vertical coordinate
    105115  call histvert(nid_hist,"presnivs","Vertical levels","Pa",klev, &
     
    120130  ! end definition sequence
    121131  call histend(nid_hist)
     132
     133!XIOS
     134#ifdef CPP_XIOS
     135    ! Déclaration de l'axe vertical du fichier:   
     136    !CALL wxios_add_vaxis("presnivs", "histins", klev, presnivs)
     137
     138    !Déclaration du pas de temps:
     139    !CALL wxios_set_timestep(dtime)
     140
     141    !Finalisation du contexte:
     142    !CALL wxios_closedef()
     143#endif
    122144!$OMP END MASTER
    123145endif ! of if (debut)
     
    154176endif
    155177
     178!XIOS
     179#ifdef CPP_XIOS
     180!$OMP MASTER
     181    !On incrémente le pas de temps XIOS
     182    !CALL wxios_update_calendar(itau)
     183
     184    !Et on écrit, avec la routine histwrite dédiée:
     185    !CALL histwrite_phy("temperature",t)
     186    !CALL histwrite_phy("u",u)
     187    !CALL histwrite_phy("v",v)
     188    !CALL histwrite_phy("ps",paprs(:,1))
     189!$OMP END MASTER
     190#endif
     191
    156192! if lastcall, then it is time to write "restartphy.nc" file
    157193if (lafin) then
Note: See TracChangeset for help on using the changeset viewer.