Working planar vacancy cluster algorithm
This commit is contained in:
parent
d0e6253d64
commit
8fc91f4dd2
6 changed files with 116 additions and 4 deletions
|
@ -242,4 +242,12 @@ END FUNCTION StrDnCase
|
|||
return
|
||||
end function unitvec
|
||||
|
||||
pure function norm_dis(rl,rk)
|
||||
!This just returns the magnitude of the vector between two points
|
||||
real(kind=dp), dimension(3), intent(in) :: rl, rk
|
||||
real(kind=dp) :: norm_dis(4)
|
||||
|
||||
norm_dis(1:3) = (rk - rl)
|
||||
norm_dis(4) = norm2(rk-rl)
|
||||
end function
|
||||
end module functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue