The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine becforce
7use modmain
8use modphonon
9use modtddft
10implicit none
11integer its,is,ia
12! generate the time step grid
13call gentimes
14! write zero force to file for all time steps
15open(50,file='FORCETOT_TD.OUT',form='FORMATTED')
16do 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
23end do
24close(50)
25end subroutine
26
subroutine becforce
Definition becforce.f90:7
subroutine gentimes
Definition gentimes.f90:7
integer, dimension(maxspecies) natoms
Definition modmain.f90:36
integer nspecies
Definition modmain.f90:34
real(8), dimension(:), allocatable times
Definition modtddft.f90:48
integer ntsforce
Definition modtddft.f90:98
integer ntimes
Definition modtddft.f90:42