ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
middle_hamilt.h
Go to the documentation of this file.
1
6#ifndef MIDDLE_HAMILT_H
7#define MIDDLE_HAMILT_H
8
11
12#include <complex>
13#include <fstream>
14
15class Parallel_Blkcyclic; // Defined in source/source_base/parallel_blkcyc.h
16
17namespace module_rt
18{
19#ifdef __MPI
31void half_Hmatrix(const Parallel_Blkcyclic& layout,
32 const int nband,
33 const int nlocal,
34 std::complex<double>* Htmp,
35 std::complex<double>* Stmp,
36 const std::complex<double>* H_laststep,
37 const std::complex<double>* S_laststep,
38 std::ofstream& ofs_running,
39 const int print_matrix);
40
41void half_Hmatrix_tensor(const Parallel_Blkcyclic& layout,
42 const int nband,
43 const int nlocal,
44 ct::Tensor& Htmp,
45 ct::Tensor& Stmp,
46 const ct::Tensor& H_laststep,
47 const ct::Tensor& S_laststep,
48 std::ofstream& ofs_running,
49 const int print_matrix,
50 CublasMpResources& cublas_res);
51
52template <typename Device>
53void half_Hmatrix_tensor_lapack(const int nband,
54 const int nlocal,
55 ct::Tensor& Htmp,
56 ct::Tensor& Stmp,
57 const ct::Tensor& H_laststep,
58 const ct::Tensor& S_laststep,
59 std::ofstream& ofs_running,
60 const int print_matrix);
61
62#endif // __MPI
63} // namespace module_rt
64
65#endif
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition band_energy.cpp:21
void half_Hmatrix(const Parallel_Blkcyclic &layout, const int nband, const int nlocal, std::complex< double > *Htmp, std::complex< double > *Stmp, const std::complex< double > *H_laststep, const std::complex< double > *S_laststep, std::ofstream &ofs_running, const int print_matrix)
compute H(t+dt/2)
Definition middle_hamilt.cpp:22
void half_Hmatrix_tensor(const Parallel_Blkcyclic &layout, const int nband, const int nlocal, ct::Tensor &Htmp, ct::Tensor &Stmp, const ct::Tensor &H_laststep, const ct::Tensor &S_laststep, std::ofstream &ofs_running, const int print_matrix, CublasMpResources &cublas_res)
Definition middle_hamilt.cpp:83
void half_Hmatrix_tensor_lapack(const int nband, const int nlocal, ct::Tensor &Htmp, ct::Tensor &Stmp, const ct::Tensor &H_laststep, const ct::Tensor &S_laststep, std::ofstream &ofs_running, const int print_matrix)
Definition middle_hamilt.cpp:213
void print_matrix(std::ofstream &fp, T *matrix, int &nrow, int &ncol, bool row_first)
Definition test_diago_lapack.cpp:86