16real(8),
allocatable :: rvfmt(:,:,:),rvfir(:,:)
18write(fext,
'("_TS",I8.8,".OUT")')
itimes
21 call delfile(
'TOTENERGY_TD.OUT')
44open(50,file=
'CHARGEMT_TD.OUT',form=
'FORMATTED',position=
'APPEND')
49 write(50,
'(2I4,G18.10)') is,ia,
chgmt(ias)
55open(50,file=
'CHARGEIR_TD.OUT',form=
'FORMATTED',position=
'APPEND')
61open(50,file=
'JTOT_TD.OUT',form=
'FORMATTED',position=
'APPEND')
65open(50,file=
'JTOTM_TD.OUT',form=
'FORMATTED',position=
'APPEND')
71 open(50,file=
'FORCES'//trim(fext),form=
'FORMATTED',action=
'WRITE')
79 open(50,file=
'AFIND_TD.OUT',form=
'FORMATTED',position=
'APPEND')
87 open(50,file=
'RHO1D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
88 open(51,file=
'RHOLINES.OUT',form=
'FORMATTED',action=
'WRITE')
95 open(50,file=
'RHO2D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
101 open(50,file=
'RHO3D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
110 rvfmt(:,:,:)=
magmt(:,:,:)
111 rvfir(:,:)=
magir(:,:)
116 rvfmt(:,:,3)=
magmt(:,:,1)
117 rvfir(:,3)=
magir(:,1)
120 open(50,file=
'MAG1D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
121 open(51,file=
'MAGLINES.OUT',form=
'FORMATTED',action=
'WRITE')
122 call plot1d(50,51,3,rvfmt,rvfir)
127 open(50,file=
'MAG2D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
128 call plot2d(.true.,50,3,rvfmt,rvfir)
132 open(50,file=
'MAG3D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
133 call plot3d(50,3,rvfmt,rvfir)
136 deallocate(rvfmt,rvfir)
140 open(50,file=
'JR1D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
141 open(51,file=
'JRLINES.OUT',form=
'FORMATTED',action=
'WRITE')
148 open(50,file=
'JR2D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
154 open(50,file=
'JR3D'//trim(fext),form=
'FORMATTED',action=
'WRITE')
subroutine delfile(fname)
real(8), dimension(3) jtot
real(8), dimension(:,:,:), pointer, contiguous magmt
integer, dimension(maxspecies) natoms
real(8), dimension(:), pointer, contiguous rhoir
integer, dimension(maxatoms, maxspecies) idxas
real(8), dimension(:,:), pointer, contiguous magir
real(8), dimension(:), allocatable chgmt
real(8), dimension(:,:,:), allocatable jrmt
real(8), dimension(:,:), pointer, contiguous rhomt
real(8), dimension(:,:), allocatable jrir
real(8), dimension(3, 0:1) afindt
real(8), dimension(:), allocatable times
subroutine plot1d(fnum1, fnum2, nf, rfmt, rfir)
subroutine plot2d(tproj, fnum, nf, rfmt, rfir)
subroutine plot3d(fnum, nf, rfmt, rfir)
subroutine writeforces(fnum)