Skip to content

Commit 2ad4e7a

Browse files
committed
delete some unused function and variables
1 parent a20ac97 commit 2ad4e7a

File tree

11 files changed

+15
-382
lines changed

11 files changed

+15
-382
lines changed

source/Makefile.Objects

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ OBJS_LCAO=evolve_elec.o\
583583
LCAO_set_fs.o\
584584
LCAO_set_st.o\
585585
LCAO_nl_mu.o\
586-
LCAO_nnr.o\
587586
LCAO_set_zero.o\
588587
LCAO_allocate.o\
589588
LCAO_set_mat2d.o\

source/module_esolver/set_matrix_grid.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ void ESolver_KS_LCAO<TK, TR>::set_matrix_grid(Record_adj& ra)
8686
// and allocate the space for H(R) and S(R).
8787
// If k point is used here, allocate HlocR after atom_arrange.
8888
ra.for_2d(this->pv, PARAM.globalv.gamma_only_local, orb_.cutoffs());
89-
90-
if (!PARAM.globalv.gamma_only_local)
91-
{
92-
// need to first calculae lgd.
93-
// using GridT.init.
94-
this->GridT.cal_nnrg(&this->pv, orb_.cutoffs());
95-
}
96-
89+
9790
ModuleBase::timer::tick("ESolver_KS_LCAO", "set_matrix_grid");
9891
return;
9992
}

source/module_hamilt_lcao/hamilt_lcaodft/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ if(ENABLE_LCAO)
2727
spar_hsr.cpp
2828
spar_st.cpp
2929
spar_u.cpp
30-
LCAO_nnr.cpp
3130
LCAO_set_fs.cpp
3231
LCAO_set_st.cpp
3332
LCAO_nl_mu.cpp

source/module_hamilt_lcao/hamilt_lcaodft/LCAO_nnr.cpp

Lines changed: 0 additions & 293 deletions
This file was deleted.

source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ HamiltLCAO<TK, TR>::HamiltLCAO(Gint_Gamma* GG_in,
255255
// reset spin index and real space Hamiltonian matrix
256256
int start_spin = -1;
257257
GK_in->reset_spin(start_spin);
258-
GK_in->destroy_pvpR();
259-
GK_in->allocate_pvpR();
260258
}
261259
}
262260

source/module_hamilt_lcao/module_gint/gint.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ class Gint {
222222
double* rho);
223223

224224
// save the < phi_0i | V | phi_Rj > in sparse H matrix.
225-
bool pvpR_alloc_flag = false;
226225
hamilt::HContainer<double>* hRGint
227226
= nullptr; // stores Hamiltonian in sparse format
228227
std::vector<hamilt::HContainer<double>*> hRGint_tmp; // size of vec is 4, only used when nspin = 4

source/module_hamilt_lcao/module_gint/gint_k.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212

1313
class Gint_k : public Gint {
1414
public:
15-
~Gint_k()
16-
{
17-
destroy_pvpR();
18-
}
19-
2015
/// @brief move operator for the next ESolver to directly use its infomation
2116
/// @param rhs
2217
/// @return *this
@@ -42,17 +37,10 @@ class Gint_k : public Gint {
4237
} else if (this->spin_now != -1) {
4338
int start_spin = -1;
4439
this->reset_spin(start_spin);
45-
// this->destroy_pvpR();
46-
// this->allocate_pvpR();
4740
}
4841
return;
4942
}
5043

51-
// allocate the <phi_0 | V | phi_R> matrix element.
52-
void allocate_pvpR();
53-
// destroy the temporary <phi_0 | V | phi_R> matrix element.
54-
void destroy_pvpR();
55-
5644
// allocate the <phi_0 | V | dphi_R> matrix element.
5745
void allocate_pvdpR();
5846
// destroy the temporary <phi_0 | V | dphi_R> matrix element.

0 commit comments

Comments
 (0)