Changeset 1978
- Timestamp:
- 11/12/20 12:06:26 (3 years ago)
- Location:
- XIOS/trunk/src/interface
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/iccontext.cpp
r1622 r1978 68 68 CATCH_DUMP_STACK 69 69 70 void cxios_context_get_id(XContextPtr context, char * _id, int _id_len) 71 TRY 72 { 73 string_copy(context->getId(),_id,_id_len); 74 } 75 CATCH_DUMP_STACK 76 70 77 void cxios_context_set_current(XContextPtr context, bool withswap) 71 78 TRY -
XIOS/trunk/src/interface/fortran/context_interface.f90
r545 r1978 16 16 END SUBROUTINE cxios_context_get_current 17 17 18 SUBROUTINE cxios_context_get_id(context, idt, idt_size) BIND(C) 19 import C_CHAR, C_INTPTR_T, C_INT 20 INTEGER (kind = C_INTPTR_T) :: context 21 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: idt 22 INTEGER (kind = C_INT) , VALUE :: idt_size 23 END SUBROUTINE cxios_context_get_id 24 18 25 SUBROUTINE cxios_context_set_current(context, withswap) BIND(C) 19 26 import C_BOOL, C_INT, C_INTPTR_T -
XIOS/trunk/src/interface/fortran/icontext.F90
r947 r1978 17 17 END INTERFACE xios(set_current_context) 18 18 19 INTERFACE xios(get_current_context) 20 MODULE PROCEDURE xios(get_current_context_hdl), xios(get_current_context_id) 21 END INTERFACE xios(get_current_context) 22 19 23 CONTAINS ! Fonctions disponibles pour les utilisateurs. 20 24 … … 27 31 END SUBROUTINE xios(get_context_handle) 28 32 29 SUBROUTINE xios(get_current_context )(context)33 SUBROUTINE xios(get_current_context_hdl)(context) 30 34 IMPLICIT NONE 31 35 32 TYPE(txios(context)), INTENT( IN) :: context36 TYPE(txios(context)), INTENT(OUT) :: context 33 37 34 38 CALL cxios_context_get_current(context%daddr) 35 39 36 END SUBROUTINE xios(get_current_context )40 END SUBROUTINE xios(get_current_context_hdl) 37 41 42 SUBROUTINE xios(get_current_context_id)(idt) 43 IMPLICIT NONE 44 CHARACTER(len = *) , INTENT(OUT) :: idt 45 TYPE(txios(context)) :: context 46 47 CALL cxios_context_get_current(context%daddr) 48 CALL cxios_context_get_id(context%daddr, idt, len(idt)) 49 50 END SUBROUTINE xios(get_current_context_id) 51 38 52 SUBROUTINE xios(set_current_context_hdl)(context, withswap) 39 53 IMPLICIT NONE
Note: See TracChangeset
for help on using the changeset viewer.