6 INTEGER, PARAMETER :: dp
=8
8 REAL(KIND
=dp
), POINTER :: efield
10 TYPE qs_environment_type
13 SUBROUTINE foo(qs_env
,energy
,error
)
15 TYPE(qs_environment_type
), POINTER :: qs_env
16 TYPE(cp_error_type
) :: error
17 TYPE(qs_energy_type
), POINTER :: energy
21 SUBROUTINE qs_efield_mo_derivatives()
22 TYPE(qs_environment_type
), POINTER :: qs_env
23 TYPE(cp_error_type
) :: error
24 COMPLEX(dp
) :: zi(3), zphase(3)
26 TYPE(qs_energy_type
), POINTER :: energy
27 CALL foo(qs_env
, energy
, error
)
31 ener_field
=ener_field
+ci(idir
)*fieldfac(idir
)
33 energy
%efield
=ener_field
34 END SUBROUTINE qs_efield_mo_derivatives
35 END MODULE qs_efield_berry