Counted allocatable footprint of the wave speed 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_wave_speed_t), | intent(in) | :: | this |
pure function ocean_wave_speed_bytes(this) result(nbytes) !! Counted allocatable footprint of the wave speed slot !! (0 when unallocated). One arr_bytes term per array — add a !! term here when a new allocatable joins the type. class(ocean_wave_speed_t), intent(in) :: this integer(int64) :: nbytes nbytes = arr_bytes(this%f_centre) & + arr_bytes(this%beta_centre) & + arr_bytes(this%cg1) & + arr_bytes(this%rd) & + arr_bytes(this%rd_over_dx) end function ocean_wave_speed_bytes