ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
upsi.h
Go to the documentation of this file.
1
6
7#ifndef UPSI_H
8#define UPSI_H
9
12
13#include <complex>
14#include <fstream>
15
16class Parallel_Blkcyclic; // Defined in source/source_base/parallel_blkcyc.h
17
18namespace module_rt
19{
20#ifdef __MPI
33void upsi(const Parallel_Blkcyclic& matrix_layout,
34 const Parallel_Blkcyclic& wfc_layout,
35 const int nband,
36 const int nlocal,
37 const std::complex<double>* U_operator,
38 const std::complex<double>* psi_k_laststep,
39 std::complex<double>* psi_k,
40 std::ofstream& ofs_running,
41 const int print_matrix);
42
43void upsi_tensor(const Parallel_Blkcyclic& matrix_layout,
44 const Parallel_Blkcyclic& wfc_layout,
45 const int nband,
46 const int nlocal,
47 const ct::Tensor& U_operator,
48 const ct::Tensor& psi_k_laststep,
49 ct::Tensor& psi_k,
50 std::ofstream& ofs_running,
51 const int print_matrix,
52 CublasMpResources& cublas_res);
53
54template <typename Device>
55void upsi_tensor_lapack(const int nband,
56 const int nlocal,
57 const ct::Tensor& U_operator,
58 const ct::Tensor& psi_k_laststep,
59 ct::Tensor& psi_k,
60 std::ofstream& ofs_running,
61 const int print_matrix);
62
63#endif // __MPI
64} // namespace module_rt
65
66#endif
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition band_energy.cpp:21
void upsi_tensor(const Parallel_Blkcyclic &matrix_layout, const Parallel_Blkcyclic &wfc_layout, const int nband, const int nlocal, const ct::Tensor &U_operator, const ct::Tensor &psi_k_laststep, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix, CublasMpResources &cublas_res)
Definition upsi.cpp:97
void upsi_tensor_lapack(const int nband, const int nlocal, const ct::Tensor &U_operator, const ct::Tensor &psi_k_laststep, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix)
Definition upsi.cpp:228
void upsi(const Parallel_Blkcyclic &matrix_layout, const Parallel_Blkcyclic &wfc_layout, const int nband, const int nlocal, const std::complex< double > *U_operator, const std::complex< double > *psi_k_laststep, std::complex< double > *psi_k, std::ofstream &ofs_running, const int print_matrix)
apply U_operator to the wave function of the previous step for new wave function
Definition upsi.cpp:19
void print_matrix(std::ofstream &fp, T *matrix, int &nrow, int &ncol, bool row_first)
Definition test_diago_lapack.cpp:86