19 integer,
save :: counter=2000
20 integer,
parameter :: maxcount=9999
32 integer(ikind) :: unit_num
39 inquire (counter, opened = op)
41 if (counter > maxcount) &
42 call
assert(.false.,
' fatal : next_unit@unit_h could not find free unit number')
58 integer(ikind),
intent(in) :: iunit
60 character(skind) :: char
65 read(iunit,
'(a)',iostat=iostat) char
67 if(iostat /= 0)
return
68 if(char(1:1)/=
'!'.and.
len(trim(char))>0)
then
80 integer(ikind) :: iunit
82 character(len=256) :: last_record
86 read(iunit,
'(a256)') last_record
88 print *,
'read_error@unit_h: last string read'
89 print *, trim(last_record)
91 call
exiting(.false.,
'read_error@unit_h: last string read:"'//last_record//
'"')
utils module from Silvio Gori's grid package
subroutine, public read_error(iunit)
subroutine, public exiting(lcond, message)
unit_h module from Silvio Gori's grid package
subroutine, public sub_init(subin)
integer(ikind) function, public next_unit()
subroutine, public sub_end()
subroutine, public skip_comment_line(iunit)
if error_status len(self._reactants))
f90_kind module from Silvio Gori's grid package
subroutine, public assert(lcond, message)