The Elk Code
Loading...
Searching...
No Matches
r3vo.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2018 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3
! This file is distributed under the terms of the GNU General Public License.
4
! See the file COPYING for license details.
5
6
pure
subroutine
r3vo
(x,y)
7
implicit none
8
! arguments
9
real
(8),
intent(in)
:: x(3)
10
real
(8),
intent(inout)
:: y(3)
11
! local variables
12
real
(8) t1,t2
13
! orthogonalise the vector y with respect to x
14
t1=x(1)**2+x(2)**2+x(3)**2
15
if
(t1 < 1.d-8)
return
16
t2=(x(1)*y(1)+x(2)*y(2)+x(3)*y(3))/t1
17
y(1:3)=y(1:3)-t2*x(1:3)
18
end subroutine
19
r3vo
pure subroutine r3vo(x, y)
Definition
r3vo.f90:7
r3vo.f90
Generated by
1.9.8