|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Diagonal-block accumulation helpers for DFT+U force/stress. More...
#include "source_base/matrix.h"#include "source_basis/module_ao/parallel_orbitals.h"#include "source_cell/unitcell.h"#include <cassert>#include <complex>Go to the source code of this file.
Namespaces | |
| namespace | DFTU_LCAO |
Functions | |
| template<typename T> | |
| void | DFTU_LCAO::accumulate_diag_force (const Parallel_Orbitals &pv, const UnitCell &ucell, const T *dm, const int dim, ModuleBase::matrix &force_dftu) |
| Add the real part of diagonal local-block entries to one force component. | |
| template<typename T> | |
| void | DFTU_LCAO::accumulate_diag_stress (const Parallel_Orbitals &pv, const T *dm, const int dim1, const int dim2, const double factor, ModuleBase::matrix &stress_dftu) |
| Add the real part of diagonal local-block entries to one stress pair. | |
Diagonal-block accumulation helpers for DFT+U force/stress.
These templates are header-only so they can be unit-tested without pulling in the full DftuFsEnv closure (ScalapackConnector, folding, Plus_U_Base). accumulate_onsite_force stays in dftu_nao_fs_k.cpp because it needs the Plus_U_Base occupation-matrix lookup.