19 real(8),
allocatable :: work(:)
20 complex(8),
allocatable :: evecu(:,:)
71 open(60,file=
'ULR_INFO.OUT',form=
'FORMATTED')
73 open(65,file=
'RMSDVS.OUT',form=
'FORMATTED')
75 call writebox(60,
"Self-consistent loop started")
79 write(str,
'("Loop number : ",I0)')
iscl 85 write(60,
'("Reached self-consistent loops maximum")')
88 write(*,
'("Warning(gndstulr): failed to reach self-consistency after ",I0,& 129 call mpi_allreduce(mpi_in_place,
rhormt,n,mpi_double_precision,mpi_sum, &
132 call mpi_allreduce(mpi_in_place,
rhorir,n,mpi_double_precision,mpi_sum, &
136 call mpi_allreduce(mpi_in_place,
magrmt,n,mpi_double_precision,mpi_sum, &
139 call mpi_allreduce(mpi_in_place,
magrir,n,mpi_double_precision,mpi_sum, &
200 write(60,
'("Wrote STATE_ULR.OUT")')
209 write(60,
'("RMS change in Kohn-Sham potential (target) : ",G18.10," (",& 212 write(65,
'(G18.10)') dv
218 write(60,
'("Convergence targets achieved")')
235 write(60,
'("Timings (CPU seconds) :")')
236 write(60,
'(" Hamiltonian matrix set up",T40,": ",F12.2)')
timemat 237 write(60,
'(" eigenvalue equation",T40,": ",F12.2)')
timesv 238 write(60,
'(" charge density calculation",T40,": ",F12.2)')
timerho 239 write(60,
'(" potential calculation",T40,": ",F12.2)')
timepot 240 call writebox(60,
"Self-consistent loop stopped")
244 write(60,
'("Wrote STATE_ULR.OUT")')
subroutine writeinfou(fnum)
subroutine putocculr(ik0)
subroutine mixerifc(mtype, n, v, dv, nwork, work)
subroutine writefsm(fnum)
subroutine checkwrite(twrite)
real(8), dimension(:,:), allocatable rhorir
real(8), dimension(:,:,:), allocatable rhormt
subroutine writeengyu(fnum)
subroutine writechg(fnum)
subroutine writebox(fnum, str)
subroutine holdthd(nloop, nthd)
real(8), dimension(:,:,:,:), allocatable magrmt
real(8), dimension(:,:,:), allocatable magrir
subroutine rhomaguk(ik0, evecu, rhormt_, rhorir_, magrmt_, magrir_)
subroutine eveqnulr(ik0, evecu)
complex(8), dimension(:), allocatable, target vsbsq
real(8), dimension(:,:), allocatable evalu
subroutine writemom(fnum)