Creates the output directory specified in the case parameters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(case_params_t), | intent(in) | :: | params | |||
| type(flow_mpi_t), | intent(in) | :: | flow |
subroutine prepare_output(params, flow) type(case_params_t), intent(in) :: params type(flow_mpi_t), intent(in) :: flow integer :: exitstat character(len=path_len + 16) :: command if (flow%rank /= 0) return command = 'mkdir -p '//trim(params%output_dir) call execute_command_line(trim(command), exitstat=exitstat) if (exitstat /= 0) then call fatal_error('output', 'failed to create output directory') end if end subroutine prepare_output