diff --git a/src/serialbox-fortran/m_ser_ftg.f90 b/src/serialbox-fortran/m_ser_ftg.f90 index 176e0559..192de7f6 100644 --- a/src/serialbox-fortran/m_ser_ftg.f90 +++ b/src/serialbox-fortran/m_ser_ftg.f90 @@ -701,12 +701,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), 'ftg:registered_only', .TRUE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .TRUE.) IF (PRESENT(typename)) THEN - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:type', TRIM(typename)) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:type', TRIM(typename)) END IF IF (PRESENT(cptr)) THEN - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ftg_loc_hex(cptr))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ftg_loc_hex(cptr))) END IF END IF @@ -730,7 +730,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), 'ftg:registered_only', .TRUE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .TRUE.) END SUBROUTINE ftg_register_only_internal @@ -782,8 +782,8 @@ SUBROUTINE ftg_write_logical_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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_logical_0d @@ -808,11 +808,11 @@ SUBROUTINE ftg_write_logical_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_logical_1d @@ -839,11 +839,11 @@ SUBROUTINE ftg_write_logical_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_logical_2d @@ -872,11 +872,11 @@ SUBROUTINE ftg_write_logical_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_logical_3d @@ -905,11 +905,11 @@ SUBROUTINE ftg_write_logical_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_logical_4d @@ -929,8 +929,8 @@ SUBROUTINE ftg_write_bool_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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_bool_0d @@ -955,11 +955,11 @@ SUBROUTINE ftg_write_bool_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_bool_1d @@ -986,11 +986,11 @@ SUBROUTINE ftg_write_bool_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_bool_2d @@ -1019,11 +1019,11 @@ SUBROUTINE ftg_write_bool_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_bool_3d @@ -1052,11 +1052,11 @@ SUBROUTINE ftg_write_bool_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'bool', fs_boolsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_bool_4d @@ -1076,8 +1076,8 @@ SUBROUTINE ftg_write_int_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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_int_0d @@ -1102,11 +1102,11 @@ SUBROUTINE ftg_write_int_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_int_1d @@ -1133,11 +1133,11 @@ SUBROUTINE ftg_write_int_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_int_2d @@ -1166,11 +1166,11 @@ SUBROUTINE ftg_write_int_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_int_3d @@ -1199,11 +1199,11 @@ SUBROUTINE ftg_write_int_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'int', fs_intsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_int_4d @@ -1223,8 +1223,8 @@ SUBROUTINE ftg_write_long_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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_long_0d @@ -1249,11 +1249,11 @@ SUBROUTINE ftg_write_long_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_long_1d @@ -1280,11 +1280,11 @@ SUBROUTINE ftg_write_long_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_long_2d @@ -1313,11 +1313,11 @@ SUBROUTINE ftg_write_long_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_long_3d @@ -1346,11 +1346,11 @@ SUBROUTINE ftg_write_long_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'long', fs_longsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_long_4d @@ -1370,8 +1370,8 @@ 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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_float_0d @@ -1396,11 +1396,11 @@ SUBROUTINE ftg_write_float_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_float_1d @@ -1427,11 +1427,11 @@ SUBROUTINE ftg_write_float_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_float_2d @@ -1460,11 +1460,11 @@ SUBROUTINE ftg_write_float_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_float_3d @@ -1493,11 +1493,11 @@ SUBROUTINE ftg_write_float_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'float', fs_floatsize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_float_4d @@ -1517,8 +1517,8 @@ SUBROUTINE ftg_write_double_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), 'ftg:registered_only', .FALSE.) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_double_0d @@ -1543,11 +1543,11 @@ SUBROUTINE ftg_write_double_1d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_double_1d @@ -1574,11 +1574,11 @@ SUBROUTINE ftg_write_double_2d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_double_2d @@ -1607,11 +1607,11 @@ SUBROUTINE ftg_write_double_3d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_double_3d @@ -1640,11 +1640,11 @@ SUBROUTINE ftg_write_double_4d(fieldname, field, lbounds, ubounds) IF (.NOT. bullshit) THEN IF (SIZE(field) > 0) THEN CALL fs_write_field(ftg_get_serializer(), ftg_get_savepoint(), fieldname, field, lbounds, ubounds) - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:registered_only', .FALSE.) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:registered_only', .FALSE.) ELSE CALL ftg_register_only_internal(fieldname, 'double', fs_doublesize(), lbounds, ubounds) END IF - CALL fs_add_field_metainfo(serializer, TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) + CALL ftg_add_field_metainfo(TRIM(fieldname), 'ftg:loc', TRIM(ADJUSTL(ftg_loc_hex(C_LOC(field))))) END IF END SUBROUTINE ftg_write_double_4d @@ -1658,7 +1658,7 @@ SUBROUTINE ftg_read_logical_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1671,7 +1671,7 @@ SUBROUTINE ftg_read_logical_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1684,7 +1684,7 @@ SUBROUTINE ftg_read_logical_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1697,7 +1697,7 @@ SUBROUTINE ftg_read_logical_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1710,7 +1710,7 @@ SUBROUTINE ftg_read_logical_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1723,7 +1723,7 @@ SUBROUTINE ftg_read_bool_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1736,7 +1736,7 @@ SUBROUTINE ftg_read_bool_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1749,7 +1749,7 @@ SUBROUTINE ftg_read_bool_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1762,7 +1762,7 @@ SUBROUTINE ftg_read_bool_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1775,7 +1775,7 @@ SUBROUTINE ftg_read_bool_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1788,7 +1788,7 @@ SUBROUTINE ftg_read_int_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1801,7 +1801,7 @@ SUBROUTINE ftg_read_int_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1814,7 +1814,7 @@ SUBROUTINE ftg_read_int_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1827,7 +1827,7 @@ SUBROUTINE ftg_read_int_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1840,7 +1840,7 @@ SUBROUTINE ftg_read_int_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1853,7 +1853,7 @@ SUBROUTINE ftg_read_long_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1866,7 +1866,7 @@ SUBROUTINE ftg_read_long_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1879,7 +1879,7 @@ SUBROUTINE ftg_read_long_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1892,7 +1892,7 @@ SUBROUTINE ftg_read_long_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1905,7 +1905,7 @@ SUBROUTINE ftg_read_long_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1918,7 +1918,7 @@ SUBROUTINE ftg_read_float_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1931,7 +1931,7 @@ SUBROUTINE ftg_read_float_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1944,7 +1944,7 @@ SUBROUTINE ftg_read_float_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1957,7 +1957,7 @@ SUBROUTINE ftg_read_float_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1970,7 +1970,7 @@ SUBROUTINE ftg_read_float_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1983,7 +1983,7 @@ SUBROUTINE ftg_read_double_0d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -1996,7 +1996,7 @@ SUBROUTINE ftg_read_double_1d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -2009,7 +2009,7 @@ SUBROUTINE ftg_read_double_2d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -2022,7 +2022,7 @@ SUBROUTINE ftg_read_double_3d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF @@ -2035,7 +2035,7 @@ SUBROUTINE ftg_read_double_4d(fieldname, field) LOGICAL :: registered_only IF (.NOT. ignore_not_existing .OR. ftg_field_exists(fieldname)) THEN - CALL fs_get_field_metainfo(serializer, fieldname, 'ftg:registered_only', registered_only) + CALL ftg_get_field_metainfo(fieldname, 'ftg:registered_only', registered_only) IF (.NOT. registered_only) THEN CALL fs_read_field(serializer, savepoint, fieldname, field) END IF