| 
    pwdft
    0.1
    
   PW-DFT code for education 
   | 
 
Functions/Subroutines | |
| subroutine | scf_loop () | 
| subroutine | kohn_sham_eq (linit, Fvec) | 
| subroutine | initialize_wf (psi) | 
| Initialize wave function with random number.  More... | |
Variables | |
| integer, save | electron_maxstep | 
| Max number of iteration.  More... | |
| real(8), save | mixing_beta | 
| Mixing for SCF.  More... | |
| real(8), save | conv_thr | 
| Convergence threshold [Htr].  More... | |
| subroutine scf::scf_loop | 
Definition at line 36 of file scf.F90.
References conv_thr, electron_maxstep, gvec::g_rh, constant::htr2ev, kohn_sham_eq(), mixing_beta, and rho_v::vks.
Referenced by pwdft().


| subroutine scf::kohn_sham_eq | ( | logical, intent(in) | linit, | 
| real(8), dimension(g_rh%nr), intent(out) | Fvec | ||
| ) | 
Definition at line 100 of file scf.F90.
References kohn_sham::calculation, diag_direct::direct(), kohn_sham::eval, kohn_sham::evec, gvec::g_rh, gvec::g_wf, rho_v::hartree_pot(), initialize_wf(), k_point::ksum_rho(), k_point::kvec, lobpcg::lobpcg_main(), kohn_sham::nbnd, k_point::nk, rho_v::vks, rho_v::vps, and rho_v::xc_pot().
Referenced by pwdft(), and scf_loop().


| subroutine scf::initialize_wf | ( | complex(8), dimension(g_wf%npw,nbnd), intent(out) | psi | ) | 
Initialize wave function with random number.
Definition at line 149 of file scf.F90.
References gvec::g_wf, and kohn_sham::nbnd.
Referenced by kohn_sham_eq().

| integer, save scf::electron_maxstep | 
Max number of iteration.
Definition at line 27 of file scf.F90.
Referenced by stdin::read_stdin(), and scf_loop().
| real(8), save scf::mixing_beta | 
Mixing for SCF.
Definition at line 29 of file scf.F90.
Referenced by stdin::read_stdin(), and scf_loop().
| real(8), save scf::conv_thr | 
Convergence threshold [Htr].
Definition at line 29 of file scf.F90.
Referenced by stdin::read_stdin(), and scf_loop().