Skip to content

Commit

Permalink
revert inputoutput.f90
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jan 24, 2025
1 parent dc76843 commit ea517d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 222 deletions.
216 changes: 0 additions & 216 deletions src/Utilities/DblHashTable.f90

This file was deleted.

8 changes: 2 additions & 6 deletions src/Utilities/InputOutput.f90
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ subroutine openfile(iu, iout, fname, ftype, fmtarg_opt, accarg_opt, &
character(len=*), intent(in), optional :: filstat_opt !< file status, default is 'old'. Use 'REPLACE' for output file.
integer(I4B), intent(in), optional :: mode_opt !< simulation mode that is evaluated to determine if the file should be opened
! -- local
character(len=MAXCHARLEN) :: iomsg
character(len=20) :: fmtarg
character(len=20) :: accarg
character(len=20) :: filstat
Expand Down Expand Up @@ -108,12 +107,11 @@ subroutine openfile(iu, iout, fname, ftype, fmtarg_opt, accarg_opt, &
ivar = -1
else
open (unit=iu, file=fname(1:iflen), form=fmtarg, access=accarg, &
status=filstat, action=filact, iostat=ivar, iomsg=iomsg)
status=filstat, action=filact, iostat=ivar)
end if
!
! -- Check for an error
if (ivar /= 0) then
print *, "iomsg: ", iomsg
write (errmsg, '(3a,1x,i0,a)') &
'Could not open "', fname(1:iflen), '" on unit', iu, '.'
if (iuop > 0) then
Expand Down Expand Up @@ -1855,12 +1853,10 @@ subroutine get_line(lun, line, iostat)
! -- dummy
integer(I4B), intent(in) :: lun
character(len=:), intent(out), allocatable :: line

integer(I4B), intent(out) :: iostat
! -- local
integer(I4B), parameter :: buffer_len = MAXCHARLEN
character(len=buffer_len) :: buffer
character(len=buffer_len) :: iomsg
character(len=:), allocatable :: linetemp
integer(I4B) :: size_read, linesize
character(len=1), parameter :: cr = CHAR(13)
Expand All @@ -1872,7 +1868,7 @@ subroutine get_line(lun, line, iostat)
!
! -- process
do
read (lun, '(A)', iomsg=iomsg, iostat=iostat, advance='no', size=size_read) buffer
read (lun, '(A)', iostat=iostat, advance='no', size=size_read) buffer
if (is_iostat_eor(iostat)) then
linesize = len(line)
deallocate (linetemp)
Expand Down

0 comments on commit ea517d1

Please sign in to comment.