apply_particles_toml_table Subroutine

public subroutine apply_particles_toml_table(cfg, table, authoring)

[particles] TOML テーブルを適用する。

Arguments

Type IntentOptional Attributes Name
type(app_config), intent(inout) :: cfg
type(toml_table), intent(inout) :: table
type(app_config_authoring), intent(inout) :: authoring

Calls

proc~~apply_particles_toml_table~~CallsGraph proc~apply_particles_toml_table apply_particles_toml_table get_keys get_keys proc~apply_particles_toml_table->get_keys proc~lower_ascii lower_ascii proc~apply_particles_toml_table->proc~lower_ascii proc~read_particle_species_array read_particle_species_array proc~apply_particles_toml_table->proc~read_particle_species_array get_value get_value proc~read_particle_species_array->get_value proc~apply_particles_species_toml_table apply_particles_species_toml_table proc~read_particle_species_array->proc~apply_particles_species_toml_table proc~ensure_authoring_particle_capacity ensure_authoring_particle_capacity proc~read_particle_species_array->proc~ensure_authoring_particle_capacity proc~ensure_particle_species_capacity ensure_particle_species_capacity proc~read_particle_species_array->proc~ensure_particle_species_capacity proc~require_toml_success require_toml_success proc~read_particle_species_array->proc~require_toml_success proc~species_from_defaults species_from_defaults proc~read_particle_species_array->proc~species_from_defaults toml_len toml_len proc~read_particle_species_array->toml_len proc~apply_particles_species_toml_table->get_keys proc~apply_particles_species_toml_table->proc~lower_ascii proc~get_toml_int get_toml_int proc~apply_particles_species_toml_table->proc~get_toml_int proc~get_toml_logical get_toml_logical proc~apply_particles_species_toml_table->proc~get_toml_logical proc~get_toml_real get_toml_real proc~apply_particles_species_toml_table->proc~get_toml_real proc~get_toml_real2 get_toml_real2 proc~apply_particles_species_toml_table->proc~get_toml_real2 proc~get_toml_real3 get_toml_real3 proc~apply_particles_species_toml_table->proc~get_toml_real3 proc~get_toml_string get_toml_string proc~apply_particles_species_toml_table->proc~get_toml_string proc~get_toml_int->get_value proc~get_toml_int->proc~require_toml_success proc~get_toml_logical->get_value proc~get_toml_logical->proc~require_toml_success proc~get_toml_real->get_value proc~get_toml_real->proc~require_toml_success proc~get_toml_real2->get_value proc~get_toml_real2->proc~require_toml_success proc~get_toml_real2->toml_len proc~get_toml_real3->get_value proc~get_toml_real3->proc~require_toml_success proc~get_toml_real3->toml_len proc~get_toml_string->get_value proc~get_toml_string->proc~require_toml_success

Called by

proc~~apply_particles_toml_table~~CalledByGraph proc~apply_particles_toml_table apply_particles_toml_table proc~apply_toml_document apply_toml_document proc~apply_toml_document->proc~apply_particles_toml_table proc~load_toml_config load_toml_config proc~load_toml_config->proc~apply_toml_document proc~load_app_config load_app_config proc~load_app_config->proc~load_toml_config proc~load_or_init_run_state load_or_init_run_state proc~load_or_init_run_state->proc~load_app_config program~main main program~main->proc~load_or_init_run_state

Source Code

  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