Skips n lines while reading an input file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | f |
unit file |
||
integer(kind=ip), | intent(in) | :: | n |
number of line to be skipped |
subroutine skip_lines(f, n)
!! Skips n lines while reading an input file
use mod_memory, only: ip
implicit none
integer(ip), intent(in) :: f
!! unit file
integer(ip), intent(in) :: n
!! number of line to be skipped
integer(ip) :: i
do i=1, n
read(f, *)
end do
end subroutine skip_lines