ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dftu_nao_fs_reduce.cpp File Reference

Post-processing of DFT+U force and stress (MPI reduce + scaling). More...

Include dependency graph for dftu_nao_fs_reduce.cpp:

Namespaces

namespace  DFTU_LCAO

Functions

void DFTU_LCAO::reduce_force_impl (ModuleBase::matrix &force, int nspin)
 Post-process force: MPI Allreduce and spin-degeneracy scaling.
void DFTU_LCAO::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 form.

Detailed Description

Post-processing of DFT+U force and stress (MPI reduce + scaling).

These functions are separated from dftu_nao_fs_r.cpp to keep the link closure minimal for unit testing.