79 real(ESPUTR_DP),
public,
parameter ::
esputr_pi = 4*atan(1.)
96 character(*),
intent(in) :: fileName
102 logical,
intent(in),
optional :: ignoreComments
103 integer,
intent(out) :: err
104 integer,
parameter :: UNIT = 1337
106 character(100) :: msg
110 open(unit, iostat=err, iomsg=msg, file=filename, status=
'old', action=
'read')
115 read(unit, *, iostat=err,end=100) line
117 write(
esputr_unit,*),
"ERROR in numberOfLines while reading "//trim(filename)
124 else if(
present(ignorecomments))
then
126 else if(.not.
present(ignorecomments))
then
131 write(
esputr_unit,*),
"ERROR in numberOfLines: cannot open file "//trim(filename)
integer function, public numberoflines(fileName, ignoreComments, err)
Return number of lines in the file, without blank lines and comment lines (started with #) ...
real(esputr_dp), parameter, public esputr_pi
Pi number.
real(esputr_dp), parameter, public esputr_pi2
Pi divided by 2.
character(*), parameter, public esputr_comment_start
chracter which is used to start comments in the data files
integer, parameter, public esputr_dp
Kind number for real numbers.
integer, parameter, public esputr_max_line_length
Maximum length of the line in the input data files.
integer, save, public esputr_unit
Index of the unit for standard output, default value 6.