apply_initial_condition Subroutine

public subroutine apply_initial_condition(state, cfg)

Fill state%ub (interior + halo) with the initial condition selected by cfg%problem_type. Boundary halo cells are also pre-populated for Dirichlet-style BCs (dirichlet/inflow/supersonic_inlet) which use early return in apply_bcs.

Arguments

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

Solver state (must have ub allocated, schemes bound)

type(config_t), intent(in) :: cfg

Runtime configuration