Skip to content

Commit

Permalink
[Fortran] Removed meta-info getters for strings from Fortran interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hovy committed Mar 9, 2018
1 parent ba06af8 commit 9dbcb9e
Showing 1 changed file with 3 additions and 60 deletions.
63 changes: 3 additions & 60 deletions src/serialbox-fortran/m_serialize.f90
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ END SUBROUTINE fs_disable_serialization
fs_get_serializer_metainfo_b, &
fs_get_serializer_metainfo_i , &
fs_get_serializer_metainfo_f, &
fs_get_serializer_metainfo_d, &
fs_get_serializer_metainfo_s
fs_get_serializer_metainfo_d
END INTERFACE


Expand All @@ -182,8 +181,7 @@ END SUBROUTINE fs_disable_serialization
fs_get_field_metainfo_b, &
fs_get_field_metainfo_i, &
fs_get_field_metainfo_f, &
fs_get_field_metainfo_d, &
fs_get_field_metainfo_s
fs_get_field_metainfo_d
END INTERFACE


Expand All @@ -208,8 +206,7 @@ END SUBROUTINE fs_disable_serialization
fs_get_savepoint_metainfo_b, &
fs_get_savepoint_metainfo_i, &
fs_get_savepoint_metainfo_f, &
fs_get_savepoint_metainfo_d, &
fs_get_savepoint_metainfo_s
fs_get_savepoint_metainfo_d
END INTERFACE


Expand Down Expand Up @@ -669,24 +666,6 @@ END SUBROUTINE fs_get_serializer_metainfo_d_
CALL fs_get_serializer_metainfo_d_(serializer%serializer_ptr, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_serializer_metainfo_d

SUBROUTINE fs_get_serializer_metainfo_s(serializer, key, val)
TYPE(t_serializer), INTENT(IN) :: serializer
CHARACTER(LEN=*), INTENT(IN) :: key
CHARACTER(LEN=*), INTENT(OUT) :: val

INTERFACE
SUBROUTINE fs_get_serializer_metainfo_s_(serializer, key, val) &
BIND(c, name='serialboxFortranSerializerGetMetainfoString')
USE, INTRINSIC :: iso_c_binding
TYPE(C_PTR), INTENT(IN), VALUE :: serializer
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(IN) :: key
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(OUT) :: val
END SUBROUTINE fs_get_serializer_metainfo_s_
END INTERFACE

CALL fs_get_serializer_metainfo_s_(serializer%serializer_ptr, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_serializer_metainfo_s

!=============================================================================
!=============================================================================

Expand Down Expand Up @@ -962,24 +941,6 @@ END SUBROUTINE fs_get_field_metainfo_d_
CALL fs_get_field_metainfo_d_(serializer%serializer_ptr, TRIM(fieldname)//C_NULL_CHAR, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_field_metainfo_d

SUBROUTINE fs_get_field_metainfo_s(serializer, fieldname, key, val)
TYPE(t_serializer), INTENT(IN) :: serializer
CHARACTER(LEN=*), INTENT(IN) :: fieldname, key
CHARACTER(LEN=*), INTENT(OUT) :: val

INTERFACE
SUBROUTINE fs_get_field_metainfo_s_(serializer, fieldname, key, val) &
BIND(c, name='serialboxFortranSerializerGetFieldMetainfoString')
USE, INTRINSIC :: iso_c_binding
TYPE(C_PTR), INTENT(IN), VALUE :: serializer
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(IN) :: fieldname, key
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(OUT) :: val
END SUBROUTINE fs_get_field_metainfo_s_
END INTERFACE

CALL fs_get_field_metainfo_s_(serializer%serializer_ptr, TRIM(fieldname)//C_NULL_CHAR, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_field_metainfo_s

!=============================================================================
!=============================================================================

Expand Down Expand Up @@ -1457,24 +1418,6 @@ END SUBROUTINE fs_get_savepoint_metainfo_d_
CALL fs_get_savepoint_metainfo_d_(savepoint%savepoint_ptr, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_savepoint_metainfo_d

SUBROUTINE fs_get_savepoint_metainfo_s(savepoint, key, val)
TYPE(t_savepoint), INTENT(IN) :: savepoint
CHARACTER(LEN=*), INTENT(IN) :: key
CHARACTER(LEN=*), INTENT(OUT) :: val

INTERFACE
SUBROUTINE fs_get_savepoint_metainfo_s_(savepoint, key, val) &
BIND(c, name='serialboxFortranSavepointGetMetainfoString')
USE, INTRINSIC :: iso_c_binding
TYPE(C_PTR), INTENT(IN), VALUE :: savepoint
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(IN) :: key
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(OUT) :: val
END SUBROUTINE fs_get_savepoint_metainfo_s_
END INTERFACE

CALL fs_get_savepoint_metainfo_s_(savepoint%savepoint_ptr, TRIM(key)//C_NULL_CHAR, val)
END SUBROUTINE fs_get_savepoint_metainfo_s

!=============================================================================
!=============================================================================

Expand Down

0 comments on commit 9dbcb9e

Please sign in to comment.