|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Output the position-operator matrix <phi_mu | r_hat | phi_nu> as a sparse matrix for each lattice vector R (lat_r). More...
#include <pos_op_writer.h>
Public Member Functions | |
| PosOpWriter (const PosOpBasis &basis, const PosOpCalc &calc, const Parallel_Blkcyclic &layout) | |
| void | out_lat_r (const UnitCell &ucell, const Grid_Driver &gd, int istep, int precision, const std::string &global_out_dir, const std::string &global_matrix_dir, const std::string &calculation, int out_app_flag, int nlocal, int npol, double sparse_threshold, bool binary, std::ofstream &ofs_running) |
Private Attributes | |
| const PosOpBasis & | basis_ |
| const PosOpCalc & | calc_ |
| const Parallel_Blkcyclic & | layout_ |
Output the position-operator matrix <phi_mu | r_hat | phi_nu> as a sparse matrix for each lattice vector R (lat_r).
The writer loops over all periodic images, assembles the sparse blocks, and writes the final rr.csr file via ModuleIO helpers.
| PosOpWriter::PosOpWriter | ( | const PosOpBasis & | basis, |
| const PosOpCalc & | calc, | ||
| const Parallel_Blkcyclic & | layout ) |
| void PosOpWriter::out_lat_r | ( | const UnitCell & | ucell, |
| const Grid_Driver & | gd, | ||
| int | istep, | ||
| int | precision, | ||
| const std::string & | global_out_dir, | ||
| const std::string & | global_matrix_dir, | ||
| const std::string & | calculation, | ||
| int | out_app_flag, | ||
| int | nlocal, | ||
| int | npol, | ||
| double | sparse_threshold, | ||
| bool | binary, | ||
| std::ofstream & | ofs_running ) |
|
private |
|
private |
|
private |