Return Q at grid cell idx with ghost-state fallback at boundaries.
Mirrors the boundary-aware averaging in the FVS face loop (lines ~124-141).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_state_t), | intent(in) | :: | state |
Solver state. |
||
| integer, | intent(in) | :: | idx |
Cell index (may lie outside [1, n_pt]). |