2019-01-25 11:39:31 +01:00
|
|
|
subroutine hcore_guess
|
|
|
|
BEGIN_DOC
|
|
|
|
! Produce `H_core` MO orbital
|
|
|
|
END_DOC
|
|
|
|
implicit none
|
|
|
|
character*(64) :: label
|
|
|
|
label = "Guess"
|
2020-01-29 00:25:34 +01:00
|
|
|
if (is_periodic) then
|
|
|
|
call mo_as_eigvectors_of_mo_matrix_complex(mo_one_e_integrals_complex, &
|
|
|
|
size(mo_one_e_integrals_complex,1), &
|
|
|
|
size(mo_one_e_integrals_complex,2),label,1,.false.)
|
|
|
|
call save_mos
|
|
|
|
!TODO: is this correct? decide how to handle separate real/imag parts of mo_coef
|
|
|
|
SOFT_TOUCH mo_coef_complex mo_label
|
|
|
|
|
|
|
|
else
|
|
|
|
call mo_as_eigvectors_of_mo_matrix(mo_one_e_integrals, &
|
|
|
|
size(mo_one_e_integrals,1), &
|
|
|
|
size(mo_one_e_integrals,2),label,1,.false.)
|
|
|
|
call save_mos
|
|
|
|
SOFT_TOUCH mo_coef mo_label
|
|
|
|
endif
|
2019-01-25 11:39:31 +01:00
|
|
|
end
|