Map the check-decomp ierr code (INTERNAL 1/2/3 convention —
see ocean_restart_check_decomp) to a human-readable kind for
the legacy error stop message.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | code |
pure function restart_mismatch_kind(code) result(kind) !! Map the check-decomp ierr code (INTERNAL 1/2/3 convention — !! see `ocean_restart_check_decomp`) to a human-readable kind for !! the legacy `error stop` message. integer, intent(in) :: code character(len=:), allocatable :: kind select case (code) case (1) kind = "schema-version" case (2) kind = "decomposition" case (3) kind = "grid/vcoord/tracer" case default kind = "unknown" end select end function restart_mismatch_kind