True iff z_draft is the FULL ghosted (nx_total, ny_total)
array the seeders index with (ng+i, ng+j) — i.e. it matches
h_layer’s horizontal extent. Guards the (1, 1) placeholder
ocean_metrics_t allocates when the cavity is off from ever
being read as a field.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | z_draft(:,:) | |||
| type(multilayer_state_t), | intent(in) | :: | ms |
pure function draft_shape_ok(z_draft, ms) result(ok) !! True iff `z_draft` is the FULL ghosted `(nx_total, ny_total)` !! array the seeders index with `(ng+i, ng+j)` — i.e. it matches !! `h_layer`'s horizontal extent. Guards the `(1, 1)` placeholder !! `ocean_metrics_t` allocates when the cavity is off from ever !! being read as a field. real(wp), intent(in) :: z_draft(:, :) type(multilayer_state_t), intent(in) :: ms logical :: ok ok = (size(z_draft, 1) == size(ms%h_layer, 1)) .and. & (size(z_draft, 2) == size(ms%h_layer, 2)) end function draft_shape_ok