Working commit for dislocation generation branch
This commit is contained in:
parent
41024b9674
commit
d0e6253d64
9 changed files with 114 additions and 17 deletions
|
@ -232,4 +232,14 @@ END FUNCTION StrDnCase
|
|||
end if
|
||||
return
|
||||
end function is_equal
|
||||
|
||||
pure function unitvec(n,vec)
|
||||
integer, intent(in) :: n
|
||||
real(kind=dp), intent(in) :: vec(n)
|
||||
real(kind=dp) :: unitvec(n)
|
||||
|
||||
unitvec = vec/norm2(vec)
|
||||
return
|
||||
end function unitvec
|
||||
|
||||
end module functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue