12real(8),
allocatable :: rvfmt(:,:,:),rvfir(:,:)
13real(8),
allocatable :: rfmt(:,:),rfir(:)
14real(8),
allocatable :: grfmt(:,:,:),grfir(:,:)
19 write(*,
'("Error(dbxcplot): spin-unpolarised magnetic field is zero")')
30 rvfmt(:,:,:)=
bxcmt(:,:,:)
36 rvfmt(:,:,3)=
bxcmt(:,:,1)
42 call gradrf(rvfmt(:,:,idm),rvfir(:,idm),grfmt,grfir)
46 rfmt(1:np,ias)=rfmt(1:np,ias)+grfmt(1:np,ias,idm)
48 rfir(:)=rfir(:)+grfir(:,idm)
52 open(50,file=
'DBXC1D.OUT',form=
'FORMATTED')
53 open(51,file=
'DBXCLINES.OUT',form=
'FORMATTED')
54 call plot1d(50,51,1,rfmt,rfir)
58 write(*,
'("Info(dbxcplot):")')
59 write(*,
'(" 1D divergence of exchange-correlation field written to &
61 write(*,
'(" vertex location lines written to DBXCLINES.OUT")')
63 open(50,file=
'DBXC2D.OUT',form=
'FORMATTED')
64 call plot2d(.false.,50,1,rfmt,rfir)
66 write(*,
'("Info(dbxcplot):")')
67 write(*,
'(" 2D divergence of exchange-correlation field written to &
70 open(50,file=
'DBXC3D.OUT',form=
'FORMATTED')
71 call plot3d(50,1,rfmt,rfir)
73 write(*,
'("Info(dbxcplot):")')
74 write(*,
'(" 3D divergence of exchange-correlation field written to &
77deallocate(rvfmt,rvfir,rfmt,rfir,grfmt,grfir)
real(8), dimension(:,:,:), allocatable bxcmt
real(8), dimension(:,:), allocatable bxcir
integer, dimension(maxatoms *maxspecies) idxis
integer, dimension(maxspecies) npmt