Changeset 3322


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

Location:
LMDZ6/branches/DYNAMICO-conv/libf
Files:
4 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    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • LMDZ6/branches/DYNAMICO-conv/libf/phylmd/iophy.F90

    r3312 r3322  
    7070    INTEGER :: data_ibegin, data_iend
    7171
    72 !#ifdef CPP_XIOS
    73 !      CALL wxios_context_init
    74 !#endif
     72#ifdef CPP_XIOS
     73      CALL wxios_context_init
     74#endif
    7575   
    7676
  • LMDZ6/branches/DYNAMICO-conv/libf/phylmd/phyetat0.F90

    r3065 r3322  
    518518  ENDIF
    519519
    520   CALL init_iophy_new(latitude_deg, longitude_deg)
     520!  CALL init_iophy_new(latitude_deg, longitude_deg)
    521521
    522522  ! Initilialize module fonte_neige_mod     
  • LMDZ6/branches/DYNAMICO-conv/libf/phylmd/physiq_mod.F90

    r3320 r3322  
    12011201       !IM 180608
    12021202
    1203 #ifdef CPP_XIOS
    1204        ! Get "missing_val" value from XML files (from temperature variable)
    1205        !$OMP MASTER
    1206        CALL xios_get_field_attr("temp",default_value=missing_val_omp)
    1207        !$OMP END MASTER
    1208        !$OMP BARRIER
    1209        missing_val=missing_val_omp
    1210 #endif
    12111203
    12121204       itau_con=0
     
    14001392       ENDIF
    14011393       ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     1394       CALL init_iophy_new(latitude_deg,longitude_deg)
     1395
    14021396
    14031397       CALL phyetat0 ("startphy.nc",clesphy0,tabcntr0)
     
    16121606       !   Initialisation des sorties
    16131607       !=============================================================
     1608
     1609#ifdef CPP_XIOS
     1610       ! Get "missing_val" value from XML files (from temperature variable)
     1611       !$OMP MASTER
     1612       CALL xios_get_field_attr("temp",default_value=missing_val_omp)
     1613       !$OMP END MASTER
     1614       !$OMP BARRIER
     1615       missing_val=missing_val_omp
     1616#endif
    16141617
    16151618#ifdef CPP_XIOS
Note: See TracChangeset for help on using the changeset viewer.