The Elk Code
becforce.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2020 J. K. Dewhurst and S. Sharma.
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 becforce
7 use modmain
8 use modphonon
9 use modtddft
10 implicit none
11 integer its,is,ia
12 ! generate the time step grid
13 call gentimes
14 ! write zero force to file for all time steps
15 open(50,file='FORCETOT_TD.OUT',form='FORMATTED')
16 do its=1,ntimes,ntsforce
17  write(50,'(I8,G18.10)') its,times(its)
18  do is=1,nspecies
19  do ia=1,natoms(is)
20  write(50,'(2I4,3G18.10)') is,ia,0.d0,0.d0,0.d0
21  end do
22  end do
23 end do
24 close(50)
25 end subroutine
26 
subroutine becforce
Definition: becforce.f90:7
integer ntimes
Definition: modtddft.f90:42
integer ntsforce
Definition: modtddft.f90:98
subroutine gentimes
Definition: gentimes.f90:7
integer, dimension(maxspecies) natoms
Definition: modmain.f90:36
real(8), dimension(:), allocatable times
Definition: modtddft.f90:48
integer nspecies
Definition: modmain.f90:34