Push one message; error_ring_get(0) is always the most recent.
Overwrites the oldest slot once full.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | msg |
subroutine error_ring_push(msg) !! Push one message; `error_ring_get(0)` is always the most recent. !! Overwrites the oldest slot once full. character(len=*), intent(in) :: msg ring_head = mod(ring_head, ERROR_RING_SLOTS) + 1 ring(ring_head) = msg if (ring_count < ERROR_RING_SLOTS) ring_count = ring_count + 1 end subroutine error_ring_push