Gate: enabled AND inside the step window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ke_probe_t), | intent(in) | :: | probe | |||
| integer, | intent(in) | :: | step |
pure function ke_probe_active(probe, step) result(active) !! Gate: enabled AND inside the step window. type(ke_probe_t), intent(in) :: probe integer, intent(in) :: step logical :: active active = probe%enable if (active .and. probe%start_step > 0) active = step >= probe%start_step if (active .and. probe%end_step > 0) active = step <= probe%end_step end function ke_probe_active