apply_initial_condition Subroutine

public subroutine apply_initial_condition(state, cfg)

Fill state%ub with the initial condition selected by cfg%problem_type.

Also sets state%q_left, state%q_right, and — for FVS schemes — pre-computes the boundary split fluxes fl_pos, fl_neg, fr_pos, fr_neg.

Arguments

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

Solver state (must have ub allocated, schemes bound)

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

Runtime configuration