Open file from the restart folder
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(inout) | :: | files | |||
type(controltype), | intent(in) | :: | control |
subroutine open_file(files, control)
!< Open file from the restart folder
implicit none
type(filetype), intent(inout) :: files
type(controltype), intent(in) :: control
DebugCall('open_file')
write(files%restartfile, '(A,I4.4,A,I2.2)') 'time_directories/',control%start_from,&
'/restart/process_', process_id
open(files%IN_FILE_UNIT, file=trim(files%infile)//trim(file_format))!, form=trim(data_format))
open(files%RESTART_FILE_UNIT, file=files%restartfile, status='old')
end subroutine open_file