Ignore:
Timestamp:
May 4, 2018, 3:33:28 PM (6 years ago)
Author:
Laurent Fairhead
Message:

Continuing convergence between DYNAMICO and LMDZ new physics.
The xios stuff

File:
1 edited

Legend:

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

    r3077 r3322  
    136136        g_ctx_name = xios_ctx_name
    137137       
    138         ! Si couple alors init fait dans cpl_init
    139         IF (.not. PRESENT(type_ocean)) THEN
    140             CALL wxios_context_init()
    141         ENDIF
     138!        ! Si couple alors init fait dans cpl_init
     139!        IF (.not. PRESENT(type_ocean)) THEN
     140!            CALL wxios_context_init()
     141!        ENDIF
    142142
    143143    END SUBROUTINE wxios_init
     
    165165!$OMP END MASTER
    166166    END SUBROUTINE wxios_context_init
     167
     168
     169    SUBROUTINE wxios_set_context()
     170        IMPLICIT NONE
     171        TYPE(xios_context) :: xios_ctx
     172
     173       !$OMP MASTER
     174        CALL xios_get_handle(g_ctx_name, xios_ctx)    !Récupération
     175        CALL xios_set_current_context(xios_ctx)            !Activation
     176       !$OMP END MASTER
     177
     178    END SUBROUTINE wxios_set_context
    167179
    168180    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Note: See TracChangeset for help on using the changeset viewer.