注入面名から接線2軸を返す。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | inject_face |
注入面識別子( |
||
| integer, | intent(out) | :: | axis_t1 |
注入面の第1接線軸インデックス(1:x, 2:y, 3:z)。 |
||
| integer, | intent(out) | :: | axis_t2 |
注入面の第1接線軸インデックス(1:x, 2:y, 3:z)。 注入面の第2接線軸インデックス(1:x, 2:y, 3:z)。 |
pure subroutine resolve_face_axes(inject_face, axis_t1, axis_t2) character(len=*), intent(in) :: inject_face integer, intent(out) :: axis_t1, axis_t2 select case (trim(adjustl(inject_face))) case ('x_low', 'x_high') axis_t1 = 2 axis_t2 = 3 case ('y_low', 'y_high') axis_t1 = 3 axis_t2 = 1 case ('z_low', 'z_high') axis_t1 = 1 axis_t2 = 2 case default error stop "unknown inject_face" end select end subroutine resolve_face_axes