|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Accumulate explicitly weighted collinear USPP states with reusable device buffers. More...
#include <uspp_density.h>
Classes | |
| class | Workspace |
Public Member Functions | |
| UsppProjector (const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const int nbands) | |
| Bind cell/projectors and allocate storage for a block of nbands states. | |
| ~UsppProjector () | |
| void | accumulate (const int ik, const T *coefficients, const int stride, const int npw, const int spin, const std::vector< double > &weights, std::vector< double > *becsum) |
| Add weighted projector products to the caller's packed coefficients. | |
Private Attributes | |
| const UnitCell & | ucell_ |
| const pseudopot_cell_vnl & | ppcell_ |
| const int | nbands_ |
| std::unique_ptr< Workspace > | work_ |
Accumulate explicitly weighted collinear USPP states with reusable device buffers.
| elecstate::UsppProjector< T, Device >::UsppProjector | ( | const UnitCell & | ucell, |
| const pseudopot_cell_vnl & | ppcell, | ||
| const int | nbands ) |
Bind cell/projectors and allocate storage for a block of nbands states.
|
default |
| void elecstate::UsppProjector< T, Device >::accumulate | ( | const int | ik, |
| const T * | coefficients, | ||
| const int | stride, | ||
| const int | npw, | ||
| const int | spin, | ||
| const std::vector< double > & | weights, | ||
| std::vector< double > * | becsum ) |
Add weighted projector products to the caller's packed coefficients.
| coefficients | Device-resident PW coefficients, accessed with the supplied stride. |
| stride | Storage leading dimension between successive states. |
| npw | Number of active plane waves on this pool rank. |
| spin | Scalar/collinear density channel receiving the contribution. |
| weights | One explicit weight for each state in the block. |
| becsum | Host output; existing contributions are retained. All ranks in the owning POOL_WORLD must participate in the overlap reduction. The current contract has no spinor component layout or cross-spin products. Supporting nspin=4 requires extending this interface and constructing charge/magnetization projector weights. |
|
private |
|
private |
|
private |
|
private |