The open-shell $g^{xc}$ term, i.e. $\sum_{\kappa\lambda\sigma'}\sum_{\alpha\beta\sigma''}D^X_{\sigma'}D^X_{\sigma''} g^{xc}_{\kappa\lambda\sigma',\alpha\beta\sigma'',pq\tau}$ projected onto the MO block selected by mo_type (VO for the Z-vector right-hand side, OO for $W^c$).
More...
|
| | OperatorGxcULR (const KernelXC &kxc, const ModulePW::PW_Basis &rho_basis, const UnitCell &ucell, const std::vector< double > &orb_cutoff, const Grid_Driver &gd, const K_Vectors &kv, const Parallel_Orbitals &pmat, const Parallel_Blkcyclic &pc, const psi::Psi< T > &psi_ks, const std::vector< int > &nocc, const std::vector< int > &nvirt, const int naos, const std::vector< Parallel_Blkcyclic > &pX, const std::vector< Parallel_Blkcyclic > &pout, const LR_Util::MO_TYPE mo_type, const T factor, const int &nspin, const std::string &ks_solver) |
| void | act (const T *const X_full, T *const out_full) const |
| | out += factor * <p tau| v^{(2)}_tau[X, X] |q tau> for both spin channels
|
template<typename
T>
class LR::OperatorGxcULR< T >
The open-shell $g^{xc}$ term, i.e. $\sum_{\kappa\lambda\sigma'}\sum_{\alpha\beta\sigma''}D^X_{\sigma'}D^X_{\sigma''} g^{xc}_{\kappa\lambda\sigma',\alpha\beta\sigma'',pq\tau}$ projected onto the MO block selected by mo_type (VO for the Z-vector right-hand side, OO for $W^c$).
This cannot be an OperatorLRHxc block like the other kernel terms: it is quadratic in $D^X$ rather than bilinear in a (out, in) spin pair, so BOTH transition-density channels have to be on the grid at the same time while the free spin $\tau$ is the output index. Hence the density is built once for the whole X vector and the potential is evaluated twice, once per $\tau$.
Only the real (gamma-only) path is implemented, matching the rest of the LR gradient – solve_Z_CG has no complex version either.