Counted allocatable footprint of one region mask (0 when
unallocated). weight is device-mapped by
ocean_diag_enter_data_impl, so it must carry a term — see
diag_var_bytes, which folds this in per masked diagnostic.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diag_mask_t), | intent(in) | :: | this |
pure function diag_mask_bytes(this) result(nbytes) !! Counted allocatable footprint of one region mask (0 when !! unallocated). `weight` is device-mapped by !! `ocean_diag_enter_data_impl`, so it must carry a term — see !! `diag_var_bytes`, which folds this in per masked diagnostic. class(diag_mask_t), intent(in) :: this integer(int64) :: nbytes nbytes = arr_bytes(this%weight) end function diag_mask_bytes