18#include "./base/base_uses.f90"
23 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'se_fock_matrix_dbg'
24 LOGICAL,
PARAMETER,
PRIVATE :: debug_this_module = .false.
42 calculate_forces, store_int_env)
45 INTEGER,
INTENT(IN) :: nspins
48 LOGICAL,
INTENT(IN) :: calculate_forces
52 REAL(kind=
dp) :: ecoul
58 CALL dbcsr_set(ks_matrix(ispin)%matrix, 0.0_dp)
67 CALL dbcsr_dot(ks_matrix(ispin)%matrix, matrix_p(ispin)%matrix, ecoul)
68 energy%hartree = energy%hartree + ecoul
70 WRITE (*, *) ispin,
"ECOUL ", ecoul
72 WRITE (*, *)
"ENUC in DBG:", energy%core_overlap
75 WRITE (*, *)
"TOTAL ENE", 0.5_dp*energy%hartree + energy%core_overlap
76 cpabort(
"Debug energy for Coulomb Long-Range")
subroutine, public dbcsr_set(matrix, alpha)
...
subroutine, public dbcsr_dot(matrix_a, matrix_b, trace)
Computes the dot product of two matrices, also known as the trace of their matrix product.
Defines the basic variable types.
integer, parameter, public dp
subroutine, public init_qs_energy(qs_energy)
Initialise a Quickstep energy data structure.
Module that collects all Coulomb parts of the fock matrix construction.
subroutine, public build_fock_matrix_coulomb_lr(qs_env, ks_matrix, matrix_p, energy, calculate_forces, store_int_env)
Long-Range part for SE Coulomb interactions.
subroutine, public dbg_energy_coulomb_lr(energy, ks_matrix, nspins, qs_env, matrix_p, calculate_forces, store_int_env)
Debug routine for long-range energy (debug value of EWALD vs VALUE KS)
Type to store integrals for semi-empirical calculations.
Semi-empirical store integrals type.