Skip to content

Commit

Permalink
[ftg] Prefix 'ftg:' for all meta-info keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hovy committed Mar 21, 2018
1 parent 7d2378a commit 321a68d
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions src/serialbox-fortran/m_ser_ftg.f90
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,12 @@ SUBROUTINE ftg_register_only(fieldname, typename, lbounds, ubounds, cptr)
IF (.NOT. bullshit) THEN
CALL fs_register_field(serializer, fieldname, 'int', 4, sizes(1), sizes(2), sizes(3), sizes(4), &
bounds(1), bounds(2), bounds(3), bounds(4), bounds(5), bounds(6), bounds(7), bounds(8))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'registered_only', .TRUE.)
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .TRUE.)
IF (PRESENT(typename)) THEN
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'type', TRIM(typename))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:type', TRIM(typename))
END IF
IF (PRESENT(cptr)) THEN
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ftg_loc_hex(cptr)))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ftg_loc_hex(cptr)))
END IF
serializer_has_registered = .TRUE.
END IF
Expand All @@ -480,7 +480,7 @@ SUBROUTINE ftg_register_only_internal(fieldname, data_type, bytes_per_element, l

CALL fs_register_field(serializer, fieldname, data_type, bytes_per_element, sizes(1), sizes(2), sizes(3), sizes(4), &
bounds(1), bounds(2), bounds(3), bounds(4), bounds(5), bounds(6), bounds(7), bounds(8))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'registered_only', .TRUE.)
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .TRUE.)
serializer_has_registered = .TRUE.

END SUBROUTINE ftg_register_only_internal
Expand Down Expand Up @@ -535,7 +535,7 @@ SUBROUTINE ftg_write_logical_0d(fieldname, field)
IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
serializer_has_written = .TRUE.
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_logical_0d
Expand Down Expand Up @@ -564,7 +564,7 @@ SUBROUTINE ftg_write_logical_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_logical_1d
Expand Down Expand Up @@ -595,7 +595,7 @@ SUBROUTINE ftg_write_logical_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_logical_2d
Expand Down Expand Up @@ -628,7 +628,7 @@ SUBROUTINE ftg_write_logical_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_logical_3d
Expand Down Expand Up @@ -661,7 +661,7 @@ SUBROUTINE ftg_write_logical_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_logical_4d
Expand All @@ -685,7 +685,7 @@ SUBROUTINE ftg_write_bool_0d(fieldname, field)
IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
serializer_has_written = .TRUE.
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_bool_0d
Expand Down Expand Up @@ -714,7 +714,7 @@ SUBROUTINE ftg_write_bool_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_bool_1d
Expand Down Expand Up @@ -745,7 +745,7 @@ SUBROUTINE ftg_write_bool_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_bool_2d
Expand Down Expand Up @@ -777,7 +777,7 @@ SUBROUTINE ftg_write_bool_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_bool_3d
Expand Down Expand Up @@ -810,7 +810,7 @@ SUBROUTINE ftg_write_bool_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_bool_4d
Expand All @@ -834,7 +834,7 @@ SUBROUTINE ftg_write_int_0d(fieldname, field)
IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
serializer_has_written = .TRUE.
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_int_0d
Expand Down Expand Up @@ -863,7 +863,7 @@ SUBROUTINE ftg_write_int_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_int_1d
Expand Down Expand Up @@ -894,7 +894,7 @@ SUBROUTINE ftg_write_int_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_int_2d
Expand Down Expand Up @@ -926,7 +926,7 @@ SUBROUTINE ftg_write_int_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_int_3d
Expand Down Expand Up @@ -959,7 +959,7 @@ SUBROUTINE ftg_write_int_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_int_4d
Expand All @@ -983,7 +983,7 @@ SUBROUTINE ftg_write_long_0d(fieldname, field)
IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
serializer_has_written = .TRUE.
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_long_0d
Expand Down Expand Up @@ -1012,7 +1012,7 @@ SUBROUTINE ftg_write_long_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_long_1d
Expand Down Expand Up @@ -1043,7 +1043,7 @@ SUBROUTINE ftg_write_long_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_long_2d
Expand Down Expand Up @@ -1075,7 +1075,7 @@ SUBROUTINE ftg_write_long_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_long_3d
Expand Down Expand Up @@ -1108,7 +1108,7 @@ SUBROUTINE ftg_write_long_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_long_4d
Expand All @@ -1131,7 +1131,7 @@ SUBROUTINE ftg_write_float_0d(fieldname, field)

IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
serializer_has_written = .TRUE.
END IF

Expand Down Expand Up @@ -1161,7 +1161,7 @@ SUBROUTINE ftg_write_float_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_float_1d
Expand Down Expand Up @@ -1192,7 +1192,7 @@ SUBROUTINE ftg_write_float_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_float_2d
Expand Down Expand Up @@ -1224,7 +1224,7 @@ SUBROUTINE ftg_write_float_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_float_3d
Expand Down Expand Up @@ -1257,7 +1257,7 @@ SUBROUTINE ftg_write_float_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_float_4d
Expand All @@ -1281,7 +1281,7 @@ SUBROUTINE ftg_write_double_0d(fieldname, field)
IF (.NOT. bullshit) THEN
CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field)
serializer_has_written = .TRUE.
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_double_0d
Expand Down Expand Up @@ -1310,7 +1310,7 @@ SUBROUTINE ftg_write_double_1d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_double_1d
Expand Down Expand Up @@ -1341,7 +1341,7 @@ SUBROUTINE ftg_write_double_2d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_double_2d
Expand Down Expand Up @@ -1373,7 +1373,7 @@ SUBROUTINE ftg_write_double_3d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_double_3d
Expand Down Expand Up @@ -1406,7 +1406,7 @@ SUBROUTINE ftg_write_double_4d(fieldname, field, lbounds, ubounds)
ELSE
CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds)
END IF
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field)))))
END IF

END SUBROUTINE ftg_write_double_4d
Expand Down

0 comments on commit 321a68d

Please sign in to comment.