'e_bottom_zero' / 'symmetric_vacuum' / 'e_top_from_sheath' を enum へ写す。未知の値は unknown。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | model |
pure integer(i32) function lower_boundary_model_id(model) result(id) character(len=*), intent(in) :: model select case (trim(lower_ascii(model))) case ('e_bottom_zero') id = lower_boundary_e_bottom_zero case ('symmetric_vacuum') id = lower_boundary_symmetric_vacuum case ('e_top_from_sheath') id = lower_boundary_e_top_from_sheath case default id = lower_boundary_unknown end select end function lower_boundary_model_id