[particles] TOML テーブルを適用する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(app_config), | intent(inout) | :: | cfg | |||
| type(toml_table), | intent(inout) | :: | table | |||
| type(app_config_authoring), | intent(inout) | :: | authoring |
subroutine apply_particles_toml_table(cfg, table, authoring) type(app_config), intent(inout) :: cfg type(toml_table), intent(inout) :: table type(app_config_authoring), intent(inout) :: authoring type(toml_key), allocatable :: keys(:) integer :: ikey character(len=:), allocatable :: k call table%get_keys(keys) do ikey = 1, size(keys) k = lower_ascii(trim(keys(ikey)%key)) select case (trim(k)) case ('species') call read_particle_species_array(cfg, table, keys(ikey), authoring) case default error stop 'Unknown key in [particles]: '//trim(keys(ikey)%key) end select end do end subroutine apply_particles_toml_table