Whole-grid mask — all weights = 1. Equivalent to “no mask”; exists for explicit registration and global-integral tests.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hgrid_t), | intent(in) | :: | grid |
function diag_mask_global(grid) result(m) !! Whole-grid mask — all weights = 1. Equivalent to "no mask"; !! exists for explicit registration and global-integral tests. type(hgrid_t), intent(in) :: grid type(diag_mask_t) :: m m%name = "global" m%nx = grid%nx_total m%ny = grid%ny_total allocate (m%weight(m%nx, m%ny), source=1.0_wp) call recompute_total_area(m, grid%dx, grid%dy) end function diag_mask_global