Fail loud on a cyclic group with no period. The reader makes
the same check per field; catching it once here names the
namelist group the user actually edited.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ocean_dataovr_config_t), | intent(in) | :: | cfg | |||
| integer, | intent(out), | optional | :: | ierr |
subroutine check_time_mode(cfg, ierr) !! Fail loud on a `cyclic` group with no period. The reader makes !! the same check per field; catching it once here names the !! namelist group the user actually edited. type(ocean_dataovr_config_t), intent(in) :: cfg integer, intent(out), optional :: ierr if (present(ierr)) ierr = OCEAN_STATUS_OK if (trim(cfg%time_mode) == "cyclic" .and. cfg%cycle_period <= 0.0_wp) then call fail("&ocean_dataovr_nml: time_mode = 'cyclic' requires cycle_period > 0", & ierr, OCEAN_STATUS_ERR_SETUP) end if end subroutine check_time_mode