ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hcontainer_funcs.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_HCONTAINER_HCONTAINER_FUNCS_H
2#define ABACUS_SOURCE_HAMILT_MODULE_HCONTAINER_HCONTAINER_FUNCS_H
3
5
6namespace hamilt
7{
12template <typename T>
14 HContainer<T> &current,
15 const HContainer<T> &stored_layout,
16 std::vector<T> &storage,
17 const int current_spin);
18
27template <typename TR>
28void folding_HR(
29 const hamilt::HContainer<TR> &hR,
30 std::complex<double> *hk,
31 const ModuleBase::Vector3<double> &kvec_d_in,
32 const int hk_ld,
33 const int hk_type);
34
35void folding_HR(
36 const hamilt::HContainer<double> &hR,
37 double *hk,
38 const ModuleBase::Vector3<double> &kvec_d_in,
39 const int hk_ld,
40 const int hk_type);
41
42#ifdef __MPI
49template <typename TR>
50void transferSerial2Parallels(const hamilt::HContainer<TR> &hR_s, hamilt::HContainer<TR> *hR_p, const int serial_rank);
57template <typename TR>
58void transferParallels2Serial(const hamilt::HContainer<TR> &hR_p, hamilt::HContainer<TR> *hR_s, const int serial_rank);
59
65template <typename TR>
66void transferSerials2Parallels(const hamilt::HContainer<TR> &hR_s, hamilt::HContainer<TR> *hR_p);
67
73template <typename TR>
74void transferParallels2Serials(const hamilt::HContainer<TR> &hR_p, hamilt::HContainer<TR> *hR_s);
75
83template <typename TR>
84void gatherParallels(const hamilt::HContainer<TR> &hR_p, hamilt::HContainer<TR> *hR_s, const int serial_rank);
85
86#endif // __MPI
87
88} // namespace hamilt
89
90#endif // ABACUS_SOURCE_HAMILT_MODULE_HCONTAINER_HCONTAINER_FUNCS_H
Definition hcontainer.h:147
Definition wf_op.cpp:6
void resize_spin_storage(HContainer< T > &current, const HContainer< T > &stored_layout, std::vector< T > &storage, const int current_spin)
Definition hcontainer.cpp:1206
void transferParallels2Serial(const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s, const int serial_rank)
transfer the HContainer from parallel object to serial object
Definition func_transfer.cpp:119
void gatherParallels(const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s, const int serial_rank)
gather the HContainer from all parallel objects to target serial object the serial object should be e...
Definition func_transfer.cpp:548
void transferSerials2Parallels(const hamilt::HContainer< TR > &hR_s, hamilt::HContainer< TR > *hR_p)
transfer the HContainer from all serial objects to all parallel objects
Definition func_transfer.cpp:221
void transferSerial2Parallels(const hamilt::HContainer< TR > &hR_s, hamilt::HContainer< TR > *hR_p, const int serial_rank)
transfer the HContainer from serial object to parallel object
Definition func_transfer.cpp:13
void folding_HR(const hamilt::HContainer< TR > &hR, std::complex< double > *hk, const ModuleBase::Vector3< double > &kvec_d_in, const int hk_ld, const int hk_type)
calculate the Hk matrix with specific k vector
Definition func_folding.cpp:15
void transferParallels2Serials(const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s)
transfer the HContainer from all serial objects to all parallel objects
Definition func_transfer.cpp:385