.true. iff ierr is present and non-OK — the “shall I
return early” test used after every ierr-threaded call in
engine_setup. When ierr is absent the callee already
error stopped on failure, so this is always .false. here.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in), | optional | :: | ierr |
pure function setup_failed(ierr) result(bad) !! `.true.` iff `ierr` is present and non-OK — the "shall I !! return early" test used after every ierr-threaded call in !! `engine_setup`. When `ierr` is absent the callee already !! `error stop`ped on failure, so this is always `.false.` here. integer, intent(in), optional :: ierr logical :: bad bad = .false. if (present(ierr)) bad = (ierr /= OCEAN_STATUS_OK) end function setup_failed