mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Improved performance of skip_lines by removing tmp.
This commit is contained in:
parent
e5e9c49529
commit
6f9a347cac
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue