11 const bool cal_stress,
20 auto integral_calc = [
this](
int T1,
int L1,
int N1,
int M1,
21 int T2,
int L2,
int N2,
int M2,
24 this->intor_->calculate(T1, L1, N1, M1, T2, L2, N2, M2,
25 dtau * this->ucell->lat0, &olm[0], &olm[1]);
30 cal_force, cal_stress, dmR, this->ucell, this->gridD,
31 this->orb_cutoff_, dmR->
get_paraV(), integral_calc, force, stress);
const Parallel_Orbitals * get_paraV() const
get parallel orbital pointer to check parallel information
Definition hcontainer.h:192
void TITLE(const std::string &class_name, const std::string &function_name, const bool disable)
Definition tool_title.cpp:18
void cal_force_stress_2center(const bool cal_force, const bool cal_stress, const hamilt::HContainer< double > *dmR, const UnitCell *ucell, const Grid_Driver *gridD, const std::vector< double > &orb_cutoff, const Parallel_Orbitals *paraV, IntegralFunc &integral_calculator, ModuleBase::matrix &force, ModuleBase::matrix &stress)
Template function for calculating force and stress from 2-center integrals.
Definition operator_force_stress_utils.hpp:38