Counted allocatable footprint of the GM slot (0 when unallocated). One arr_bytes term per array — add a term here when a new allocatable joins the type.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_gm_t), | intent(in) | :: | this |
pure function ocean_gm_bytes(this) result(nbytes) !! Counted allocatable footprint of the GM slot !! (0 when unallocated). One arr_bytes term per array — add a !! term here when a new allocatable joins the type. class(ocean_gm_t), intent(in) :: this integer(int64) :: nbytes nbytes = arr_bytes(this%khth_u) & + arr_bytes(this%khth_v) & + arr_bytes(this%uhD) & + arr_bytes(this%vhD) & + arr_bytes(this%gm_src) end function ocean_gm_bytes