Evaluate the hybrid shock sensor for face iface.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_state_t), | intent(in) | :: | state |
Solver state (solution arrays and config). |
||
| integer, | intent(in) | :: | iface |
Face index in [1, n_pt+1]. |
||
| real(kind=wp), | intent(in) | :: | q_stencil(:,:) |
Return Q at grid cell idx with ghost-state fallback at boundaries.
| 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]). |
Compute the spatial residual R(Q) = -1/dx * (F_{i+1/2} - F_{i-1/2}).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_state_t), | intent(inout) | :: | state |
Solver instance state. |
Fill a reconstruction stencil from field, applying ghost states at
domain boundaries.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | field(:,:) | |||
| integer, | intent(in) | :: | n_pts |
Number of active grid points. |
||
| integer, | intent(in) | :: | pt_start |
Number of active grid points. Grid index for stencil position i = 1. |
||
| integer, | intent(in) | :: | pt_step |
Number of active grid points. Grid index for stencil position i = 1. Index stride per position: +1 (left-biased) or -1 (right-biased). |
||
| real(kind=wp), | intent(in) | :: | ghost_lo(:) | |||
| real(kind=wp), | intent(in) | :: | ghost_hi(:) | |||
| logical, | intent(in) | :: | periodic |
If .true., wrap out-of-bounds indices periodically. |
||
| real(kind=wp), | intent(out) | :: | stencil(:,:) |
Reconstruct a face flux or state with optional characteristic projection.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(reconstructor_iface) | :: | recon |
Active reconstruction procedure pointer. |
|||
| real(kind=wp), | intent(in) | :: | stencil(:,:) | |||
| real(kind=wp), | intent(in) | :: | r_mat(:,:) | |||
| real(kind=wp), | intent(in) | :: | r_inv(:,:) | |||
| logical, | intent(in) | :: | proj |
Enable characteristic-space projection. |
||
| real(kind=wp), | intent(out) | :: | flux_out(:) |