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

DFT+U force contribution from a single atom pair (I,J,R) in real space. More...

#include "source_basis/module_ao/parallel_orbitals.h"
#include "source_hamilt/module_hcontainer/hcontainer.h"
#include <unordered_map>
#include <vector>
Include dependency graph for dftu_nao_for_r.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DFTU_LCAO

Functions

void DFTU_LCAO::cal_for_IJR_nao_r (const int &iat1, const int &iat2, const Parallel_Orbitals *pv, const std::unordered_map< int, std::vector< double > > &nlm1_all, const std::unordered_map< int, std::vector< double > > &nlm2_all, const std::vector< double > &pot_onsite_in, const hamilt::BaseMatrix< double > **dmR_pointer, const int nspin, double *force1, double *force2)
 Compute DFT+U force contribution from a single atom pair (I,J,R) in real space.

Detailed Description

DFT+U force contribution from a single atom pair (I,J,R) in real space.

Per-pair kernel invoked by the unified entry cal_fs_nao_r (dftu_nao_fs_r.h). Naming convention: _r suffix denotes the real-space implementation, corresponding to _k for the k-space (legacy) one.