get_q_at_face Function

private function get_q_at_face(state, idx) result(q)

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).

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(in) :: state

Solver state.

integer, intent(in) :: idx

Cell index (may lie outside [1, n_pt]).

Return Value real(kind=wp), (neq)