Counted allocatable footprint of the surface stress 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_surface_stress_t), | intent(in) | :: | this |
pure function ocean_surface_stress_bytes(this) result(nbytes) !! Counted allocatable footprint of the surface stress slot !! (0 when unallocated). One arr_bytes term per array — add a !! term here when a new allocatable joins the type. class(ocean_surface_stress_t), intent(in) :: this integer(int64) :: nbytes nbytes = arr_bytes(this%tau_x) & + arr_bytes(this%tau_y) & + arr_bytes(this%stress_mag) & + arr_bytes(this%stress_shelf) & + this%du_stress%bytes() & + this%dv_stress%bytes() end function ocean_surface_stress_bytes