50template <
typename TK,
typename TR>
80 const std::vector<double>& stress_tmp,
81 ModuleBase::matrix& stress);
107 const TwoCenterIntegrator* intor,
109 const std::vector<AdjacentAtomInfo>& adjs_all,
110 const std::vector<
const hamilt::HContainer<double>*>& dmR,
113 ModuleBase::matrix& force,
114 ModuleBase::matrix& stress);
136 const TwoCenterIntegrator* intor,
138 const std::vector<AdjacentAtomInfo>& adjs_all,
139 const std::vector<
const hamilt::HContainer<double>*>& dmR,
142 ModuleBase::matrix& force,
143 ModuleBase::matrix& stress);
Struct of array for packing the Adjacent atom information.
Definition sltk_grid_driver.h:21
Definition dftu_base.h:21
A class to compute two-center integrals.
Definition two_center_integrator.h:35
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition dftu_nao_op.h:32
Definition hcontainer.h:147
Definition operator_lcao.h:13
Definition dftu_nao_adj.cpp:14
void reduce_force_impl(ModuleBase::matrix &force, int nspin)
Post-process force: MPI Allreduce and spin-degeneracy scaling.
Definition dftu_nao_fs_reduce.cpp:15
void cal_fs_nao_r(const UnitCell *ucell, Plus_U_Base *dftu, const TwoCenterIntegrator *intor, int nspin, const std::vector< AdjacentAtomInfo > &adjs_all, const std::vector< const hamilt::HContainer< double > * > &dmR, bool cal_force, bool cal_stress, ModuleBase::matrix &force, ModuleBase::matrix &stress)
Calculate DFT+U force and stress in real space from explicit environment arguments (non-template over...
Definition dftu_nao_fs_r.cpp:289
void reduce_stress_impl(const UnitCell *ucell, const std::vector< double > &stress_tmp, ModuleBase::matrix &stress)
Post-process stress: MPI Allreduce and renormalization to full 3x3 tensor from Voigt-like 6-component...
Definition dftu_nao_fs_reduce.cpp:27
void cal_fs_nao_r_impl(const UnitCell *ucell, Plus_U_Base *dftu, const TwoCenterIntegrator *intor, int nspin, const std::vector< AdjacentAtomInfo > &adjs_all, const std::vector< const hamilt::HContainer< double > * > &dmR, bool cal_force, bool cal_stress, ModuleBase::matrix &force, ModuleBase::matrix &stress)
Non-template core of DFT+U force/stress in real space.
Definition dftu_nao_fs_r.cpp:166
Plus_U_Base dftu
Definition test_dftu_nao_op.cpp:11