The Elk Code
Loading...
Searching...
No Matches
genefieldt.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2020 Peter Elliott, 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
genefieldt
7
use
modmain
8
use
modtddft
9
implicit none
10
! local variables
11
integer
,
parameter
:: npm=8
12
integer
np,it,i
13
real
(8) t0
14
! automatic arrays
15
real
(8) ya(npm)
16
! external functions
17
real
(8),
external
:: polynm
18
! determine the electric field at the current time step
19
t0=-1.d0/
solsc
20
np=min(npm,
itimes
)
21
it=
itimes
-np+1
22
do
i=1,3
23
ya(1:np)=
afieldt
(i,it:
itimes
)
24
efieldt
(i)=t0*
polynm
(1,np,
times
(it),ya,
times
(
itimes
))
25
end do
26
end subroutine
27
genefieldt
subroutine genefieldt
Definition
genefieldt.f90:7
modmain
Definition
modmain.f90:6
modmain::solsc
real(8) solsc
Definition
modmain.f90:1252
modtddft
Definition
modtddft.f90:6
modtddft::times
real(8), dimension(:), allocatable times
Definition
modtddft.f90:48
modtddft::afieldt
real(8), dimension(:,:), allocatable afieldt
Definition
modtddft.f90:58
modtddft::itimes
integer itimes
Definition
modtddft.f90:46
modtddft::efieldt
real(8), dimension(3) efieldt
Definition
modtddft.f90:74
polynm
pure real(8) function polynm(m, np, xa, ya, x)
Definition
polynm.f90:10
genefieldt.f90
Generated by
1.9.8