diff --git a/src/serialbox-fortran/m_ser_ftg.f90 b/src/serialbox-fortran/m_ser_ftg.f90 index a650dbab..6a17f194 100644 --- a/src/serialbox-fortran/m_ser_ftg.f90 +++ b/src/serialbox-fortran/m_ser_ftg.f90 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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