pic_serialize record tag a field kind is stored as, or -1 if the
kind is unknown. A logical field maps onto the int32 tag.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | field_kind |
pure function soa_field_tag(field_kind) result(tag) !! `pic_serialize` record tag a field kind is stored as, or -1 if the !! kind is unknown. A `logical` field maps onto the `int32` tag. integer(int32), intent(in) :: field_kind integer(int32) :: tag select case (field_kind) case (SOA_FIELD_INT32, SOA_FIELD_LOGICAL) tag = PIC_TAG_INT32 case (SOA_FIELD_INT64) tag = PIC_TAG_INT64 case (SOA_FIELD_REAL_SP) tag = PIC_TAG_REAL_SP case (SOA_FIELD_REAL_DP) tag = PIC_TAG_REAL_DP case default tag = -1_int32 end select end function soa_field_tag