10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-10-11 10:31:42 +02:00
QuantumPackage/src/mo_one_e_ints/orthonormalize.irp.f

21 lines
597 B
Fortran
Raw Normal View History

2019-01-25 11:39:31 +01:00
subroutine orthonormalize_mos
implicit none
integer :: m,p,s
2020-01-28 23:44:16 +01:00
if (is_periodic) then
m = size(mo_coef_complex,1)
p = size(mo_overlap_complex,1)
call ortho_lowdin_complex(mo_overlap_complex,p,mo_num,mo_coef_complex,m,ao_num)
mo_label = 'Orthonormalized'
SOFT_TOUCH mo_coef_complex mo_label
!TODO: should we do anything with the separate real/imag parts of mo_coef_complex?
else
m = size(mo_coef,1)
p = size(mo_overlap,1)
call ortho_lowdin(mo_overlap,p,mo_num,mo_coef,m,ao_num)
mo_label = 'Orthonormalized'
SOFT_TOUCH mo_coef mo_label
endif
2019-01-25 11:39:31 +01:00
end