21#include "./base/base_uses.f90"
27 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'qs_period_efield_types'
33 REAL(kind=
dp) :: field_energy = -1.0_dp
34 REAL(kind=
dp),
DIMENSION(3) :: polarisation = -1.0_dp
49 REAL(kind=
dp) :: field_energy
50 REAL(kind=
dp),
DIMENSION(3) :: polarisation
54 IF (
ASSOCIATED(efield))
THEN
55 field_energy = efield%field_energy
56 polarisation = efield%polarisation
64 NULLIFY (efield%cosmat)
65 NULLIFY (efield%sinmat)
66 NULLIFY (efield%dipmat)
68 efield%field_energy = field_energy
69 efield%polarisation = polarisation
84 POINTER :: sinmat, cosmat, dipmat
86 IF (
PRESENT(cosmat)) efield%cosmat => cosmat
87 IF (
PRESENT(sinmat)) efield%sinmat => sinmat
88 IF (
PRESENT(dipmat)) efield%dipmat => dipmat
99 IF (
ASSOCIATED(efield))
THEN
100 IF (
ASSOCIATED(efield%sinmat) .AND.
ASSOCIATED(efield%cosmat))
THEN
104 IF (
ASSOCIATED(efield%dipmat))
THEN
DBCSR operations in CP2K.
Defines the basic variable types.
integer, parameter, public dp
type for berry phase efield matrices. At the moment only used for cosmat and sinmat
subroutine, public efield_berry_release(efield)
...
subroutine, public set_efield_matrices(efield, sinmat, cosmat, dipmat)
...
subroutine, public init_efield_matrices(efield)
...