[output] セクションのキーを出力制御設定へ適用する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(app_config), | intent(inout) | :: | cfg |
更新対象のアプリ設定。 |
||
| character(len=*), | intent(in) | :: | line |
|
subroutine apply_output_kv(cfg, line) type(app_config), intent(inout) :: cfg character(len=*), intent(in) :: line character(len=64) :: k character(len=256) :: v call split_key_value(line, k, v) select case (trim(k)) case ('write_files') call parse_logical(v, cfg%write_output) case ('write_mesh_potential') call parse_logical(v, cfg%write_mesh_potential) case ('write_potential_history') call parse_logical(v, cfg%write_potential_history) case ('dir') call parse_string(v, cfg%output_dir) case ('history_stride') call parse_int(v, cfg%history_stride) case ('resume') call parse_logical(v, cfg%resume_output) case default error stop 'Unknown key in [output]: '//trim(k) end select end subroutine apply_output_kv