Counted allocatable footprint of the pressure force 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_pressure_force_t), | intent(in) | :: | this |
pure function ocean_pressure_force_bytes(this) result(nbytes) !! Counted allocatable footprint of the pressure force slot !! (0 when unallocated). One arr_bytes term per array — add a !! term here when a new allocatable joins the type. class(ocean_pressure_force_t), intent(in) :: this integer(int64) :: nbytes nbytes = arr_bytes(this%b) & + this%p_edge%bytes() & + this%z_centre%bytes() & + this%mont_M%bytes() & + this%rho_insitu%bytes() & + this%dpdx_face%bytes() & + this%dpdy_face%bytes() & + this%e_face%bytes() & + this%pa%bytes() & + this%intz_dpa%bytes() & + this%intx_pa%bytes() & + this%inty_pa%bytes() & + this%intx_dpa%bytes() & + this%inty_dpa%bytes() & + this%conc_T%bytes() & + this%conc_S%bytes() & + this%recon_T_t%bytes() & + this%recon_T_b%bytes() & + this%recon_S_t%bytes() & + this%recon_S_b%bytes() end function ocean_pressure_force_bytes