The Elk Code
vclqinit.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2019 T. Mueller, J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 subroutine vclqinit
7 use modmain
8 use modulr
9 implicit none
10 ! zero the external Coulomb potential in Q-space
11 vclq(1:nfqrz)=0.d0
12 if (trdvclr) then
13 ! read the external Coulomb potential from file if required
14  call readvclr
15 else
16 ! determine the external Coulomb potential from the constant electric field
17  call potefieldu
18 ! write the external Coulomb potential to file
19  call writevclr
20 end if
21 end subroutine
22 
subroutine writevclr
Definition: writevclr.f90:7
complex(8), dimension(:), allocatable vclq
Definition: modulr.f90:66
subroutine readvclr
Definition: readvclr.f90:7
subroutine vclqinit
Definition: vclqinit.f90:7
integer nfqrz
Definition: modmain.f90:539
subroutine potefieldu
Definition: potefieldu.f90:7
Definition: modulr.f90:6
logical trdvclr
Definition: modulr.f90:64