出力ディレクトリを作成する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | out_dir |
作成対象ディレクトリのパス。 |
subroutine ensure_output_dir(out_dir) character(len=*), intent(in) :: out_dir character(len=1024) :: cmd integer :: ios cmd = 'mkdir -p "'//trim(out_dir)//'"' call execute_command_line(trim(cmd), wait=.true., exitstat=ios) if (ios /= 0) error stop 'Failed to create output directory.' end subroutine ensure_output_dir