Map the check-decomp ierr code (INTERNAL 1/2/3 convention) onto
the PUBLIC, collision-free OCEAN_STATUS_ERR_RESTART_* codes
returned through ocean_state_restart_read’s ierr (P0.1
review F4).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | code |
pure function restart_mismatch_status_code(code) result(status_code) !! Map the check-decomp ierr code (INTERNAL 1/2/3 convention) onto !! the PUBLIC, collision-free `OCEAN_STATUS_ERR_RESTART_*` codes !! returned through `ocean_state_restart_read`'s `ierr` (P0.1 !! review F4). integer, intent(in) :: code integer :: status_code select case (code) case (1) status_code = OCEAN_STATUS_ERR_RESTART_SCHEMA case (2) status_code = OCEAN_STATUS_ERR_RESTART_DECOMP case (3) status_code = OCEAN_STATUS_ERR_RESTART_GRID case default status_code = OCEAN_STATUS_ERR_RESTART_GRID end select end function restart_mismatch_status_code