17 INTEGER,
PARAMETER :: lmax = 5
18 REAL(kind=
dp),
PARAMETER :: tolerance = 1.0e-12_dp
20 REAL(kind=
dp) :: rotmat(3, 3), residual(2*lmax + 1, 2*lmax + 1)
25 rotmat = reshape([29.0_dp, 28.0_dp, -20.0_dp, -20.0_dp, 35.0_dp, 20.0_dp, &
26 28.0_dp, -4.0_dp, 35.0_dp], [3, 3])/45.0_dp
28 IF (.NOT. (abs(orbrot(0)%mat(1, 1) - 1.0_dp) <= tolerance)) error stop
"Incorrect s rotation"
30 rotmat = reshape([35.0_dp, 20.0_dp, -20.0_dp, -4.0_dp, 35.0_dp, 28.0_dp, &
31 28.0_dp, -20.0_dp, 29.0_dp], [3, 3])/45.0_dp
32 IF (.NOT. all(abs(orbrot(1)%mat - rotmat) <= tolerance)) error stop
"Incorrect p rotation"
34 n =
SIZE(orbrot(l)%mat, 1)
35 residual(1:n, 1:n) = matmul(orbrot(l)%mat, transpose(orbrot(l)%mat))
37 residual(i, i) = residual(i, i) - 1.0_dp
39 IF (.NOT. all(abs(residual(1:n, 1:n)) <= tolerance))
THEN
40 print *,
"Nonorthogonal orbital rotation for l =", l
Defines the basic variable types.
integer, parameter, public dp
Provides Cartesian and spherical orbital pointers and indices.
subroutine, public init_orbital_pointers(maxl)
Initialize or update the orbital pointers.
subroutine, public deallocate_orbital_pointers()
Deallocate the orbital pointers.