The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine vclqinit
7use modmain
8use modulr
9implicit none
10! zero the external Coulomb potential in Q-space
11vclq(1:nfqrz)=0.d0
12if (trdvclr) then
13! read the external Coulomb potential from file if required
14 call readvclr
15else
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
20end if
21end subroutine
22
integer nfqrz
Definition modmain.f90:539
complex(8), dimension(:), allocatable vclq
Definition modulr.f90:65
logical trdvclr
Definition modulr.f90:63
subroutine potefieldu
Definition potefieldu.f90:7
subroutine readvclr
Definition readvclr.f90:7
subroutine vclqinit
Definition vclqinit.f90:7
subroutine writevclr
Definition writevclr.f90:7