Test reverse flow against the link gate and its donor outfall gate.
Link gate tests q*stored direction<0, preserving authored orientation. Outfall test uses the inflow/donor end. Does not mutate flow, apply hydraulic caps or validate arbitrary indices.
- Parameters
-
| [in] | ctx | Borrowed coherent link direction/gate flags and node/outfall subtype data. |
| [in] | j | Valid global link index. |
| [in] | n1 | Valid current node1 endpoint index when q>0. |
| [in] | n2 | Valid current node2 endpoint index when q<0. |
| [in] | q | Signed flow/direction indicator; only sign is used, positive node1 to node2. |
- Returns
- True for reverse link-gate flow or flow donated by a gated outfall; false for zero/no applicable gate.