Counted allocatable footprint of the top-drag 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_top_drag_t), | intent(in) | :: | this |
pure function ocean_top_drag_bytes(this) result(nbytes) !! Counted allocatable footprint of the top-drag slot (0 when !! unallocated). One `arr_bytes` term per array — add a term here !! when a new allocatable joins the type. class(ocean_top_drag_t), intent(in) :: this integer(int64) :: nbytes nbytes = this%du_drag%bytes() & + this%dv_drag%bytes() & + arr_bytes(this%cover_u) & + arr_bytes(this%cover_v) & + arr_bytes(this%cover_t) & + arr_bytes(this%lambda_top_u) & + arr_bytes(this%lambda_top_v) & + arr_bytes(this%stress_top) end function ocean_top_drag_bytes