Ignore:
Timestamp:
03/24/15 11:21:45 (9 years ago)
Author:
rlacroix
Message:

Fix the Fortran interface generation to avoid generating dead code that caused a timer not to be stopped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/fortran_attr/variable_interface_attr.F90

    r532 r581  
    66MODULE variable_interface_attr 
    77  USE, INTRINSIC :: ISO_C_BINDING 
    8    
    9   INTERFACE ! Do not call directly / interface FORTRAN 2003 <-> C99 
    10      
    11      
     8 
     9  INTERFACE 
     10    ! Do not call directly / interface FORTRAN 2003 <-> C99 
     11 
    1212    SUBROUTINE cxios_set_variable_name(variable_hdl, name, name_size) BIND(C) 
    1313      USE ISO_C_BINDING 
     
    1616      INTEGER  (kind = C_INT)     , VALUE        :: name_size 
    1717    END SUBROUTINE cxios_set_variable_name 
    18      
     18 
    1919    SUBROUTINE cxios_get_variable_name(variable_hdl, name, name_size) BIND(C) 
    2020      USE ISO_C_BINDING 
     
    2323      INTEGER  (kind = C_INT)     , VALUE        :: name_size 
    2424    END SUBROUTINE cxios_get_variable_name 
    25      
    26     FUNCTION cxios_is_defined_variable_name(variable_hdl ) BIND(C) 
     25 
     26    FUNCTION cxios_is_defined_variable_name(variable_hdl) BIND(C) 
    2727      USE ISO_C_BINDING 
    2828      LOGICAL(kind=C_BOOL) :: cxios_is_defined_variable_name 
    2929      INTEGER (kind = C_INTPTR_T), VALUE :: variable_hdl 
    3030    END FUNCTION cxios_is_defined_variable_name 
    31      
    32      
     31 
     32 
    3333    SUBROUTINE cxios_set_variable_type(variable_hdl, type, type_size) BIND(C) 
    3434      USE ISO_C_BINDING 
     
    3737      INTEGER  (kind = C_INT)     , VALUE        :: type_size 
    3838    END SUBROUTINE cxios_set_variable_type 
    39      
     39 
    4040    SUBROUTINE cxios_get_variable_type(variable_hdl, type, type_size) BIND(C) 
    4141      USE ISO_C_BINDING 
     
    4444      INTEGER  (kind = C_INT)     , VALUE        :: type_size 
    4545    END SUBROUTINE cxios_get_variable_type 
    46      
    47     FUNCTION cxios_is_defined_variable_type(variable_hdl ) BIND(C) 
     46 
     47    FUNCTION cxios_is_defined_variable_type(variable_hdl) BIND(C) 
    4848      USE ISO_C_BINDING 
    4949      LOGICAL(kind=C_BOOL) :: cxios_is_defined_variable_type 
    5050      INTEGER (kind = C_INTPTR_T), VALUE :: variable_hdl 
    5151    END FUNCTION cxios_is_defined_variable_type 
    52      
    53      
    54     END INTERFACE 
    55    
     52 
     53  END INTERFACE 
     54 
    5655END MODULE variable_interface_attr 
Note: See TracChangeset for help on using the changeset viewer.