True when the handle’s metrics carry a full ghosted areaT (every
grid the engine builds does); anything else falls back to
grid%dx*grid%dy.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ocean_handle_t), | intent(in), | pointer | :: | h |
function handle_has_area(h) result(has_area) !! True when the handle's metrics carry a full ghosted `areaT` (every !! grid the engine builds does); anything else falls back to !! `grid%dx*grid%dy`. type(ocean_handle_t), pointer, intent(in) :: h logical :: has_area has_area = .false. if (.not. allocated(h%state%metrics%areaT)) return has_area = size(h%state%metrics%areaT, 1) == size(h%state%multilayer%h_layer, 1) & .and. size(h%state%metrics%areaT, 2) == size(h%state%multilayer%h_layer, 2) end function handle_has_area