Changeset 545 for XIOS/trunk/src/interface/fortran/icontext.F90
- Timestamp:
- 12/17/14 11:14:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran/icontext.F90
r501 r545 4 4 USE, INTRINSIC :: ISO_C_BINDING 5 5 USE CONTEXT_INTERFACE 6 USE IDATE 7 USE IDURATION 6 8 ! USE icontext_attr 7 USE IDATE8 9 9 10 10 11 TYPE txios(context) 11 12 INTEGER(kind = C_INTPTR_T) :: daddr 12 13 END TYPE txios(context) 13 14 14 15 15 16 CONTAINS ! Fonctions disponibles pour les utilisateurs. 16 17 17 18 SUBROUTINE xios(get_context_handle)(idt,ret) 18 19 IMPLICIT NONE 19 CHARACTER(len = *) , INTENT(IN) :: idt 20 CHARACTER(len = *) , INTENT(IN) :: idt 20 21 TYPE(txios(context)), INTENT(OUT):: ret 21 22 22 CALL cxios_context_handle_create(ret%daddr, idt, len(idt)) 23 CALL cxios_context_handle_create(ret%daddr, idt, len(idt)) 23 24 END SUBROUTINE xios(get_context_handle) 24 25 26 SUBROUTINE xios(get_current_context)(context) 27 IMPLICIT NONE 28 29 TYPE(txios(context)), INTENT(IN) :: context 30 31 CALL cxios_context_get_current(context%daddr) 32 33 END SUBROUTINE xios(get_current_context) 34 25 35 SUBROUTINE xios(set_current_context)(context, withswap) 26 36 IMPLICIT NONE … … 28 38 TYPE(txios(context)) , INTENT(IN) :: context 29 39 LOGICAL , OPTIONAL, INTENT(IN) :: withswap 30 LOGICAL (kind = 1) :: wswap40 LOGICAL (kind = 1) :: wswap 31 41 32 42 IF (PRESENT(withswap)) THEN … … 38 48 39 49 END SUBROUTINE xios(set_current_context) 40 50 41 51 LOGICAL FUNCTION xios(is_valid_context)(idt) 42 52 IMPLICIT NONE … … 49 59 END FUNCTION xios(is_valid_context) 50 60 51 61 52 62 END MODULE ICONTEXT
Note: See TracChangeset
for help on using the changeset viewer.