Low-level geometry check used inline by register_common:
.true. iff the variable has the expected rank and its two
validated-length dims are each at least as long as required
(decomposition-safe: a subdomain slab only needs offset+extent
to fit, not to equal the file’s global length). Never aborts.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nd | |||
| integer, | intent(in) | :: | expect_nd | |||
| integer, | intent(in) | :: | d_horiz1 | |||
| integer, | intent(in) | :: | d_horiz2 | |||
| integer, | intent(in) | :: | expect1 | |||
| integer, | intent(in) | :: | expect2 |
pure logical function dims_geometry_ok(nd, expect_nd, d_horiz1, d_horiz2, & expect1, expect2) result(ok) !! Low-level geometry check used inline by `register_common`: !! `.true.` iff the variable has the expected rank and its two !! validated-length dims are each at least as long as required !! (decomposition-safe: a subdomain slab only needs `offset+extent` !! to fit, not to equal the file's global length). Never aborts. integer, intent(in) :: nd, expect_nd, d_horiz1, d_horiz2, expect1, expect2 ok = (nd == expect_nd) .and. (d_horiz1 >= expect1) .and. (d_horiz2 >= expect2) end function dims_geometry_ok