read_srim Subroutine

public subroutine read_srim(filename, x, s)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename

the name of the SRIM output file - usually RANGE.txt

real(kind=8), intent(out), allocatable, dimension(:):: x

the right hand x coordinate of the depth bin

real(kind=8), intent(out), allocatable, dimension(:):: s

the amount of ions deposited in the bin

Description

This subroutine opens a SRIM output file and reads the distribution of ions in the sample, outputting those to x and s


Variables

TypeVisibility AttributesNameInitial
character(len=100), public :: buffer
integer(kind=4), public :: n
integer(kind=4), public :: j
integer(kind=4), public :: i
integer(kind=4), public :: eof =0
real(kind=8), public :: dummy