Assign header column to its role by accepted names ("Required columns", docs/kippfiles.md).
Ignores unknown names, so extra stream columns are skipped.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Column name. |
||
| integer(kind=int32), | intent(in) | :: | idx |
Column index, from 1. |
||
| integer(kind=int32), | intent(inout) | :: | c_model |
Column of model number. |
||
| integer(kind=int32), | intent(inout) | :: | c_age |
Column of age. |
||
| integer(kind=int32), | intent(inout) | :: | c_dt |
Column of time step. |
||
| integer(kind=int32), | intent(inout) | :: | c_mass |
Column of mass coordinate. |
||
| integer(kind=int32), | intent(inout) | :: | c_radius |
Column of radius coordinate. |
||
| integer(kind=int32), | intent(inout) | :: | c_mix |
Column of mixing type. |
||
| integer(kind=int32), | intent(inout) | :: | c_eps |
Column of energy rate. |
subroutine assign_kipp_col(name, idx, c_model, c_age, c_dt, & c_mass, c_radius, c_mix, c_eps) !! Assign header column to its role by accepted names ("Required columns", docs/kippfiles.md). !! !! Ignores unknown names, so extra stream columns are skipped. ! Arguments character(len=*), intent(in) :: name !! Column name. integer(int32), intent(in) :: idx !! Column index, from 1. integer(int32), intent(inout) :: c_model !! Column of model number. integer(int32), intent(inout) :: c_age !! Column of age. integer(int32), intent(inout) :: c_dt !! Column of time step. integer(int32), intent(inout) :: c_mass !! Column of mass coordinate. integer(int32), intent(inout) :: c_radius !! Column of radius coordinate. integer(int32), intent(inout) :: c_mix !! Column of mixing type. integer(int32), intent(inout) :: c_eps !! Column of energy rate. select case (trim(name)) case ('model_number', 'model'); c_model = idx case ('star_age_yr', 'star_age', 'age_yr'); c_age = idx case ('dt_s', 'dt'); c_dt = idx case ('m_g', 'mass_g', 'mass'); c_mass = idx case ('r_cm', 'radius_cm', 'r'); c_radius = idx case ('mixing_type', 'mix_type', 'mixing'); c_mix = idx case ('eps_net_erg_g_s', 'eps_nuc', 'eps_net', 'eps'); c_eps = idx end select end subroutine assign_kipp_col