Read the sub-directory log file in the restart folder
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | RESTART_FILE_UNIT | |||
type(controltype), | intent(inout) | :: | control |
subroutine read_restart_file(RESTART_FILE_UNIT, control)
!< Read the sub-directory log file in the restart folder
implicit none
integer, intent(in) :: RESTART_FILE_UNIT
type(controltype), intent(inout) :: control
integer :: i
read(RESTART_FILE_UNIT, *) control%previous_flow_type
read(RESTART_FILE_UNIT, *) control%last_iter
do i = 1,control%n_var+1
read(RESTART_FILE_UNIT, *) control%previous_res(i)
end do
end subroutine read_restart_file