| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=64), | public | :: | name | = | "" |
Human-readable identifier (“global”, “tasman_box”, …). |
|
| integer, | public | :: | nx | = | 0 |
Mask shape — matches the grid’s total extent. |
|
| integer, | public | :: | ny | = | 0 |
Mask shape — matches the grid’s total extent. |
|
| real(kind=wp), | public | :: | total_area | = | 0.0_wp |
Cached nominal |
|
| real(kind=wp), | public, | allocatable | :: | weight(:,:) |
Per-cell weight in |
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 |
type :: diag_mask_t character(len=64) :: name = "" !! Human-readable identifier ("global", "tasman_box", ...). integer :: nx = 0, ny = 0 !! Mask shape — matches the grid's total extent. real(wp), allocatable :: weight(:, :) !! Per-cell weight in `[0, 1]`. 0 = excluded, 1 = full, !! fractional = partial coverage. real(wp) :: total_area = 0.0_wp !! Cached nominal `Σ weight · dx · dy`. contains procedure, non_overridable :: bytes => diag_mask_bytes end type diag_mask_t