Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Modules/io_modules/ensim_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,11 @@ subroutine advance_past_header(iun, fname, ierr)
!> Local variables.
character(len = MAX_LINE_LENGTH) line

!> Set the error status.
ierr = 0

!> Rewind to the beginning of the file, then read until the end of the EnSim header.
rewind(iun)
ierr = 0
do while (ierr == 0)
call read_ensim_line(iun, line, ierr)
if (ierr /= 0) exit
Expand Down