ESPUTR
calculation of sputtering yields
Functions/Subroutines | Variables
esputr Module Reference

Functions/Subroutines

integer function, public numberoflines (fileName, ignoreComments, err)
 Return number of lines in the file, without blank lines and comment lines (started with #) More...
 

Variables

integer, save, public esputr_unit = 6
 Index of the unit for standard output, default value 6. More...
 
integer, parameter, public esputr_dp =8
 Kind number for real numbers. More...
 
real(esputr_dp), parameter, public esputr_pi = 4*atan(1.)
 Pi number. More...
 
real(esputr_dp), parameter, public esputr_pi2 = ESPUTR_PI/2
 Pi divided by 2. More...
 
integer, parameter, public esputr_max_line_length = 256
 Maximum length of the line in the input data files. More...
 
character(*), parameter, public esputr_comment_start = '#'
 chracter which is used to start comments in the data files More...
 

Function/Subroutine Documentation

integer function, public esputr::numberoflines ( character(*), intent(in)  fileName,
logical, intent(in), optional  ignoreComments,
integer, intent(out)  err 
)

Return number of lines in the file, without blank lines and comment lines (started with #)

Parameters
[in]filenameThe input file (must not be opened)
[in]ignorecommentsLines started with '#' are counted only when ignoreComments=.false.,

If ignoreComments is not present or ignoreComments=.true. then lines started with '#' are not counted. They are counted only when ignoreComments=.false.

Definition at line 95 of file esputr.f90.

References esputr_comment_start, and esputr_unit.

Referenced by esputr1993::esputr1993_init(), and esputr2001::esputr2001_initth().

Here is the caller graph for this function:

Variable Documentation

integer, save, public esputr::esputr_unit = 6
integer, parameter, public esputr::esputr_dp =8

Kind number for real numbers.

Value 8 seems to be necessary for coupling with Matlab

Definition at line 77 of file esputr.f90.

real(esputr_dp), parameter, public esputr::esputr_pi = 4*atan(1.)
real(esputr_dp), parameter, public esputr::esputr_pi2 = ESPUTR_PI/2

Pi divided by 2.

Definition at line 81 of file esputr.f90.

Referenced by esputr1993::esputr1993_yth(), and esputr2001::esputr2001_yth().

integer, parameter, public esputr::esputr_max_line_length = 256

Maximum length of the line in the input data files.

Definition at line 83 of file esputr.f90.

character(*), parameter, public esputr::esputr_comment_start = '#'

chracter which is used to start comments in the data files

Definition at line 86 of file esputr.f90.

Referenced by esputr2001::esputr2001_initth(), and numberoflines().