Improved performance of skip_lines by removing tmp.

This commit is contained in:
Paul Romano 2011-11-07 11:36:45 -05:00
parent e5e9c49529
commit 6f9a347cac

View file

@ -79,11 +79,10 @@ contains
integer, intent(in) :: n_lines ! number of lines to skip
integer, intent(out) :: ioError ! error status
integer :: i ! index for number of lines
character(MAX_LINE_LEN) :: tmp ! single line
integer :: i ! index for number of lines
do i = 1, n_lines
read(UNIT=unit, FMT='(A)', IOSTAT=ioError) tmp
read(UNIT=unit, FMT=*, IOSTAT=ioError)
end do
end subroutine skip_lines