![]() |
(git:b77b4be)
|
Public Member Functions | |
subroutine | calculate_ptrace_1 (h, p, ecore) |
Calculate the core Hamiltonian energy which includes the kinetic and the potential energy of the electrons. It is assumed, that the core Hamiltonian matrix h and the density matrix p have the same sparse matrix structure (same atomic blocks and block ordering) | |
subroutine | calculate_ptrace_gamma (hmat, pmat, ecore, nspin) |
Calculate the trace of a operator matrix with the density matrix. Sum over all spin components (in P, no spin in H) | |
subroutine | calculate_ptrace_kp (hmat, pmat, ecore, nspin) |
Calculate the trace of a operator matrix with the density matrix. Sum over all spin components (in P, no spin in H) and the real space coordinates. | |
Definition at line 60 of file qs_core_energies.F.
subroutine qs_core_energies::calculate_ptrace::calculate_ptrace_1 | ( | type(dbcsr_type), pointer | h, |
type(dbcsr_type), pointer | p, | ||
real(kind=dp), intent(out) | ecore | ||
) |
Calculate the core Hamiltonian energy which includes the kinetic and the potential energy of the electrons. It is assumed, that the core Hamiltonian matrix h and the density matrix p have the same sparse matrix structure (same atomic blocks and block ordering)
h | ... |
p | ... |
ecore | ... |
Definition at line 162 of file qs_core_energies.F.
subroutine qs_core_energies::calculate_ptrace::calculate_ptrace_gamma | ( | type(dbcsr_p_type), dimension(:), pointer | hmat, |
type(dbcsr_p_type), dimension(:), pointer | pmat, | ||
real(kind=dp), intent(out) | ecore, | ||
integer, intent(in) | nspin | ||
) |
Calculate the trace of a operator matrix with the density matrix. Sum over all spin components (in P, no spin in H)
hmat | ... |
pmat | ... |
ecore | ... |
nspin | ... |
Definition at line 81 of file qs_core_energies.F.
subroutine qs_core_energies::calculate_ptrace::calculate_ptrace_kp | ( | type(dbcsr_p_type), dimension(:, :), pointer | hmat, |
type(dbcsr_p_type), dimension(:, :), pointer | pmat, | ||
real(kind=dp), intent(out) | ecore, | ||
integer, intent(in) | nspin | ||
) |
Calculate the trace of a operator matrix with the density matrix. Sum over all spin components (in P, no spin in H) and the real space coordinates.
hmat | H matrix |
pmat | P matrices |
ecore | Tr(HP) output |
nspin | Number of P matrices |
Definition at line 117 of file qs_core_energies.F.