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
6pure subroutine r3vo(x,y)
7implicit none
8! arguments
9real(8), intent(in) :: x(3)
10real(8), intent(inout) :: y(3)
11! local variables
12real(8) t1,t2
13! orthogonalise the vector y with respect to x
14t1=x(1)**2+x(2)**2+x(3)**2
15if (t1 < 1.d-8) return
16t2=(x(1)*y(1)+x(2)*y(2)+x(3)*y(3))/t1
17y(1:3)=y(1:3)-t2*x(1:3)
18end subroutine
19
pure subroutine r3vo(x, y)
Definition r3vo.f90:7