Skip to content

Commit 51712e7

Browse files
committed
move wfinit to module_psi
1 parent 0ecfbc4 commit 51712e7

File tree

9 files changed

+5
-29
lines changed

9 files changed

+5
-29
lines changed

source/module_esolver/esolver_ks_pw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define ESOLVER_KS_PW_H
33
#include "./esolver_ks.h"
44
#include "module_hamilt_pw/hamilt_pwdft/operator_pw/velocity_pw.h"
5-
#include "module_hamilt_pw/hamilt_pwdft/wfinit.h"
5+
#include "module_psi/wfinit.h"
66

77
#include <memory>
88
#include <module_base/macros.h>

source/module_hamilt_pw/hamilt_pwdft/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ list(APPEND objects
2828
VNL_grad_pw.cpp
2929
wavefunc.cpp
3030
wf_atomic.cpp
31-
wfinit.cpp
3231
structure_factor.cpp
3332
structure_factor_k.cpp
3433
soc.cpp

source/module_hamilt_pw/hamilt_pwdft/wavefunc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "module_base/global_variable.h"
77
#include "module_base/matrix.h"
88
#include "module_hamilt_general/hamilt.h"
9-
#include "wf_atomic.h"
9+
#include "module_hamilt_pw/hamilt_pwdft/wf_atomic.h"
1010

1111
class wavefunc : public WF_atomic
1212
{

source/module_hamilt_pw/hamilt_pwdft/wf_atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "module_base/realarray.h"
88
#include "module_basis/module_pw/pw_basis_k.h"
99
#include "module_psi/psi.h"
10-
#include "structure_factor.h"
10+
#include "module_hamilt_pw/hamilt_pwdft/structure_factor.h"
1111

1212
class WF_atomic
1313
{

source/module_hsolver/hsolver_pw_sdft.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,6 @@ void HSolverPW_SDFT<T, Device>::solve(hamilt::Hamilt<T, Device>* pHamilt,
2828
const int nbands = psi.get_nbands();
2929
const int nks = psi.get_nk();
3030

31-
//---------------------------------------------------------------------------------------------------------------
32-
//---------------------------------for psi init guess!!!!--------------------------------------------------------
33-
//---------------------------------------------------------------------------------------------------------------
34-
// if (!PARAM.inp.psi_initializer && !this->initialed_psi && this->basis_type == "pw")
35-
// {
36-
// for (int ik = 0; ik < nks; ++ik)
37-
// {
38-
// /// update H(k) for each k point
39-
// pHamilt->updateHk(ik);
40-
41-
// if (nbands > 0 && GlobalV::MY_STOGROUP == 0)
42-
// {
43-
// /// update psi pointer for each k point
44-
// psi.fix_k(ik);
45-
46-
// /// for psi init guess!!!!
47-
// hamilt::diago_PAO_in_pw_k2(this->ctx, ik, psi, this->wfc_basis, this->pwf, pHamilt);
48-
// }
49-
// }
50-
// }
51-
//---------------------------------------------------------------------------------------------------------------
52-
//---------------------------------------------------------------------------------------------------------------
53-
//---------------------------------------------------------------------------------------------------------------
54-
5531
// prepare for the precondition of diagonalization
5632
std::vector<double> precondition(psi.get_nbasis(), 0.0);
5733

source/module_psi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ add_library(
22
psi
33
OBJECT
44
psi.cpp
5+
wfinit.cpp
56
)
67

78
add_library(
File renamed without changes.
File renamed without changes.

source/module_ri/exx_lip.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "module_elecstate/elecstate.h"
2222
#include "module_basis/module_pw/pw_basis_k.h"
2323
#include "module_cell/module_symmetry/symmetry.h"
24-
#include "module_hamilt_pw/hamilt_pwdft/wfinit.h"
24+
#include "module_psi/wfinit.h"
2525
#include "module_hamilt_pw/hamilt_pwdft/structure_factor.h"
2626
#include "module_base/tool_title.h"
2727
#include "module_base/timer.h"

0 commit comments

Comments
 (0)