ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
boundary_fix.h
Go to the documentation of this file.
1
5#ifndef BOUNDARY_FIX_H
6#define BOUNDARY_FIX_H
7
10#include "source_psi/psi.h"
11
12#include <cstddef>
13#include <complex>
14#include <vector>
15
16class BasisFlattenedIndexing; // Defined in source/source_base/basis_flattened_indexing.h
17class Parallel_Blkcyclic; // Defined in source/source_base/parallel_blkcyc.h
18
19namespace module_rt{
20
36void reset_matrix_boundary(const UnitCell& ucell,
37 const std::vector<ModuleBase::Vector3<double>>& kvec_d,
38 const ModuleBase::Vector3<double>& cart_At_last,
39 const BasisFlattenedIndexing& basis,
40 const Parallel_Blkcyclic& layout,
41 ct::Tensor& hk_last,
42 ct::Tensor& sk_last,
43 psi::Psi<std::complex<double>>* psi_last);
44
45}// namespace module_rt
46#endif // BOUNDARY_FIX_H
Canonical atom-major flattening of the LCAO basis hierarchy.
Definition basis_flattened_indexing.h:40
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition band_energy.cpp:21
void reset_matrix_boundary(const UnitCell &ucell, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const ModuleBase::Vector3< double > &cart_At_last, const BasisFlattenedIndexing &basis, const Parallel_Blkcyclic &layout, ct::Tensor &hk_last, ct::Tensor &sk_last, psi::Psi< std::complex< double > > *psi_last)
Add phases to the matrix and coefficient from the previous step to correct the boundary discontinuity...
Definition boundary_fix.cpp:97