Ignore:
Timestamp:
May 10, 2022, 6:50:43 PM (2 years ago)
Author:
Laurent Fairhead
Message:

Source code and xml files needed for XIOS output in the LMDZ LonLat? dynamical core.
One flag controls everything: ok_dyn_xios. Parameters controlling outputs need to be put in the xml
files, nothing is set in the code
Work to follow on the dynzon file and the modipsl/libIGCM framework.
ok_dyn_xios = n should not change anything

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/callphysiq_mod.F90

    r2604 r4146  
    2020
    2121  USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat
    22   USE control_mod, ONLY: planet_type
     22  USE control_mod, ONLY: planet_type, ok_dyn_xios
    2323  USE physiq_mod, ONLY: physiq
     24#ifdef CPP_XIOS
     25  USE mod_xios_dyn3dmem, ONLY : dyn3d_ctx_handle
     26  USE xios, ONLY : xios_set_current_context
     27#endif
    2428  IMPLICIT NONE
    2529
     
    9094              zdpsrf_omp)
    9195
     96! switching back to LMDZDYN context
     97#ifdef CPP_XIOS
     98!$OMP MASTER
     99  if (ok_dyn_xios) then
     100     CALL xios_set_current_context(dyn3d_ctx_handle)
     101  endif
     102!$OMP END MASTER
     103#endif 
     104
    92105
    93106END SUBROUTINE call_physiq
Note: See TracChangeset for help on using the changeset viewer.