TOML の文字列キーを境界条件モードへ変換する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_table), | intent(inout) | :: | table | |||
| type(toml_key), | intent(in) | :: | key | |||
| integer(kind=i32), | intent(out) | :: | value | |||
| character(len=*), | intent(in) | :: | context |
subroutine get_toml_boundary_mode(table, key, value, context) type(toml_table), intent(inout) :: table type(toml_key), intent(in) :: key integer(i32), intent(out) :: value character(len=*), intent(in) :: context character(len=64) :: mode call get_toml_string(table, key, mode, context) select case (trim(lower_ascii(mode))) case ('open', 'outflow', 'escape') value = bc_open case ('reflect', 'reflection') value = bc_reflect case ('periodic') value = bc_periodic case default error stop 'Unknown boundary condition mode in [sim].' end select end subroutine get_toml_boundary_mode