seed_dirichlet_halos Subroutine

private subroutine seed_dirichlet_halos(state, q_l, q_r)

Fill the boundary halo cells with the prescribed Dirichlet states.

Only edge ranks have boundary halos that BC code-paths leave alone — those ranks need a pre-filled halo so apply_bcs's early-return (for dirichlet / inflow / supersonic_inlet) reads valid data. Inner ranks: this is a harmless overwrite that halo_exchange will replace on the first residual evaluation.

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: q_l(neq)
real(kind=wp), intent(in) :: q_r(neq)