Counted allocatable footprint of the horizontal viscosity 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_horizontal_viscosity_t), | intent(in) | :: | this |
pure function ocean_horizontal_viscosity_bytes(this) result(nbytes) !! Counted allocatable footprint of the horizontal viscosity slot !! (0 when unallocated). One arr_bytes term per array — add a !! term here when a new allocatable joins the type. class(ocean_horizontal_viscosity_t), intent(in) :: this integer(int64) :: nbytes nbytes = this%du_visc%bytes() & + this%dv_visc%bytes() & + this%lap_u%bytes() & + this%lap_v%bytes() & + this%str_xx%bytes() & + this%str_xy%bytes() & + this%ah_t%bytes() & + this%ah_q%bytes() & + arr_bytes(this%ke_diss) end function ocean_horizontal_viscosity_bytes