Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
5d8b0c7
update timer, add std
mohanchen Mar 27, 2024
b5bcc7f
update the format of esolver_fp.cpp
mohanchen Mar 27, 2024
3c69ace
add description in esolver_fp.h
mohanchen Mar 27, 2024
e1551cf
update a few esolver files
mohanchen Mar 27, 2024
f0a5c3b
update esolver description for LCAO
mohanchen Mar 27, 2024
1c8ed86
update some formats of esolver codes
mohanchen Mar 27, 2024
ea0e2c4
update esolver_ks_pw.cpp formats
mohanchen Mar 27, 2024
ae36b11
update formats of esolver_ks_pw.cpp and esolver_ks_pw.h
mohanchen Mar 27, 2024
16b0f76
update esolver_ks_lcao_tddft.cpp formats
mohanchen Mar 27, 2024
1768c88
update format of esolver_sdft_pw.cpp
mohanchen Mar 27, 2024
6a606ed
update the format of esolver_sdft_pw_tool.cpp
mohanchen Mar 27, 2024
cac11ea
keep formating esolver_ks_pw.cpp
mohanchen Mar 27, 2024
e191f6c
formating esolver_of_interface.cpp
mohanchen Mar 27, 2024
8eddd5a
change GlobalC::ucell to ucell in esolver_ks.cpp
mohanchen Mar 27, 2024
bcf4d54
remove some GlobalC::ucell in esolver_sdft_pw.cpp
mohanchen Mar 27, 2024
1ca6574
refactor the code before getting rid of RA in esolver_lcao
mohanchen Mar 28, 2024
7987684
refactor before getting rid of LOWF
mohanchen Mar 28, 2024
186609f
refactor before getting rid of LCAO_hamilt.h and LCAO_matrix.h
mohanchen Mar 28, 2024
fc02fb8
refactor wavefunc_in_pw
mohanchen Mar 28, 2024
7a8064f
refactor density matrix
mohanchen Mar 28, 2024
f95129d
refactor the format cal_dm_psi.cpp
mohanchen Mar 28, 2024
98234ae
format forces.cpp
mohanchen Mar 30, 2024
583214c
refactor esolver_of_tool.cpp
mohanchen Mar 30, 2024
2638dd3
resolve conflict
mohanchen Mar 30, 2024
9505a9f
change member function beforescf in Esolver to before_scf
mohanchen Mar 31, 2024
313893e
change afterscf to after_scf
mohanchen Mar 31, 2024
7317a47
change updatepot to update_pot
mohanchen Mar 31, 2024
730b460
change eachiterinit to iter_init, change eachiterfinish to iter_finish
mohanchen Mar 31, 2024
31760e8
refactor esolvers, change member function names of most esolvers
mohanchen Mar 31, 2024
cccbb14
reformat esolver.h
mohanchen Mar 31, 2024
270a39d
update tests for esolvers
mohanchen Mar 31, 2024
bfc8ac7
add TITLE in esolver_ks_lcao
mohanchen Mar 31, 2024
3e15388
update esolver_ks_lcao
mohanchen Mar 31, 2024
413e73f
update esolver_lcao
mohanchen Mar 31, 2024
3f2006a
update timer::tick in esolver_lcao
mohanchen Mar 31, 2024
78c08cf
try to delete LCAO_Matrix in LCAO_Hamilt, and try to delete Parallel_…
mohanchen Mar 31, 2024
76b23de
fix the compiling issue with LCAO_hamilt.hpp
mohanchen Mar 31, 2024
4018fa2
try to divide the FORCE_k.cpp into several small files
mohanchen Mar 31, 2024
eee4f97
fix conflicts
mohanchen Mar 31, 2024
34add55
divide FORCE_k into foverlap_k.cpp ftvnl_dphi_k.cpp fvl_dphi_k.cpp fv…
mohanchen Mar 31, 2024
0469d94
get rid of UHM in FORCE_k.cpp
mohanchen Mar 31, 2024
2eac633
cannot compile, but I have modified some files in order to get rid of…
mohanchen Mar 31, 2024
21d4637
keep updating, cannot run
mohanchen Mar 31, 2024
3e01810
update write_Vxc, cannot run yet
mohanchen Mar 31, 2024
be3b80a
keep updating gint_gamma and gint_k
mohanchen Apr 1, 2024
37066e5
update LCAO_matrix.cpp
mohanchen Apr 1, 2024
d128c11
divide force files, and update Makefile.Objects
mohanchen Apr 1, 2024
a2e25b3
update LCAO_hamilt.cpp
mohanchen Apr 1, 2024
d6e6492
Merge branch 'deepmodeling:develop' into develop
mohanchen Apr 1, 2024
e182760
Merge branch 'divide_force' into develop.
mohanchen Apr 1, 2024
d96852a
Merge branch 'deepmodeling:develop' into develop
mohanchen Apr 2, 2024
70420af
delete genH pointer in UHM
mohanchen Apr 2, 2024
9bc99e2
Merge branch 'develop' of https://github.com/mohanchen/abacus-mc into…
mohanchen Apr 2, 2024
28d0035
divide LCAO_hamilt.cpp into small codes, grid_init.cpp is the first one
mohanchen Apr 2, 2024
0b10d2c
update grid_init in esolver_ks_lcao
mohanchen Apr 2, 2024
bfb62a6
add a new namespace named sparse_format, most of the functions that o…
mohanchen Apr 2, 2024
0d5b0e1
update with the upstream
mohanchen Apr 3, 2024
2978fa5
cannot find the mismatch of DFTU
mohanchen Apr 3, 2024
c5ab404
fix the DFTU error
mohanchen Apr 3, 2024
a2f4374
update
mohanchen Apr 3, 2024
c8be288
avoid using UHM in esolver_ks_lcao, try to move some functions in LCA…
mohanchen Apr 3, 2024
2cb501c
Merge branch 'deepmodeling:develop' into develop
mohanchen Apr 4, 2024
ac4df7e
enable the test_memory function again by setting calcalculation param…
mohanchen Apr 5, 2024
33f46eb
update memory record functions
mohanchen Apr 5, 2024
a8e4b04
Merge branch 'deepmodeling:develop' into develop
mohanchen Apr 5, 2024
4722315
add sparse_format_u
mohanchen Apr 5, 2024
110da34
keep refactoring LCAO_hamilt
mohanchen Apr 5, 2024
9a2d3f5
rename sparse format files, which are originally defined in LCAO_hami…
mohanchen Apr 5, 2024
88cc894
add spar_u.h and spar_u.cpp
mohanchen Apr 5, 2024
3a8c14b
update sparse matrix
mohanchen Apr 5, 2024
3278f5f
add spar_exx
mohanchen Apr 5, 2024
812df48
update LCAO_hamilt.cpp
mohanchen Apr 5, 2024
c3411af
tear down LCAO_hamilt.h and .cpp, DONE.
mohanchen Apr 5, 2024
4af5080
keep updating spar
mohanchen Apr 5, 2024
d65c917
fix the bugs after deleting LCAO_hamilt
mohanchen Apr 5, 2024
0cafca4
continue
mohanchen Apr 5, 2024
194e233
fix some errors when compiling
mohanchen Apr 5, 2024
2552f82
fix compiling errors in DOS
mohanchen Apr 5, 2024
cf30915
fix errors without uhm
mohanchen Apr 6, 2024
e3bd1d2
remove directly use of LM in spar_hsr.cpp
mohanchen Apr 6, 2024
3563e8e
update spa_ files
mohanchen Apr 6, 2024
9c0fb5a
keep cleaning the mass left by UHM
mohanchen Apr 6, 2024
6f13615
finnaly, all files can be compiled without uhm
mohanchen Apr 6, 2024
0ef9441
previous commit has problems, now it has been fixed.
mohanchen Apr 6, 2024
92b3663
fix makefile bugs
mohanchen Apr 6, 2024
24fdf2b
fix exx compiling errors
mohanchen Apr 6, 2024
a005c66
fix exx problems
mohanchen Apr 6, 2024
bc944e4
update exx
mohanchen Apr 6, 2024
a056adb
fix exx
mohanchen Apr 6, 2024
5b1f577
in some sense, the exx code is a disaster
mohanchen Apr 6, 2024
22f7430
let's fix exx again
mohanchen Apr 6, 2024
32ca9dc
fix undefination
maki49 Apr 6, 2024
0b1680e
Merge pull request #1 from maki49/fixLCAO4mc
mohanchen Apr 6, 2024
074dab3
Merge branch 'develop' of https://github.com/mohanchen/abacus-mc into…
mohanchen Apr 7, 2024
df49832
Merge branch 'LCAO4' into develop
mohanchen Apr 7, 2024
7efe979
fix a bug in LCAO Refactor Step 4, I accidently forgot to add & for G…
mohanchen Apr 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,12 @@ OBJS_LCAO=DM_gamma.o\
fvl_dphi_k.o\
fvnl_dbeta_k.o\
LCAO_gen_fixedH.o\
LCAO_hamilt.o\
grid_init.o\
sparse_format.o\
spar_dh.o\
spar_exx.o\
spar_hsr.o\
spar_st.o\
spar_u.o\
LCAO_matrix.o\
LCAO_nnr.o\
center2_orb-orb11.o\
Expand Down
2 changes: 0 additions & 2 deletions source/module_elecstate/elecstate_lcao.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class ElecStateLCAO : public ElecState
Local_Orbital_Charge* loc_in ,
Gint_Gamma* gint_gamma_in, //mohan add 2024-04-01
Gint_k* gint_k_in, //mohan add 2024-04-01
LCAO_Hamilt* uhm_in ,
Local_Orbital_wfc* lowf_in ,
ModulePW::PW_Basis* rhopw_in ,
ModulePW::PW_Basis_Big* bigpw_in )
Expand Down Expand Up @@ -77,7 +76,6 @@ class ElecStateLCAO : public ElecState
Local_Orbital_Charge* loc = nullptr;
Gint_Gamma* gint_gamma = nullptr; // mohan add 2024-04-01
Gint_k* gint_k = nullptr; // mohan add 2024-04-01
//LCAO_Hamilt* uhm = nullptr; // mohan modify 2024-04-01
Local_Orbital_wfc* lowf = nullptr;
DensityMatrix<TK,double>* DM = nullptr;

Expand Down
13 changes: 6 additions & 7 deletions source/module_esolver/esolver_ks_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ void ESolver_KS_LCAO<TK, TR>::init(Input& inp, UnitCell& ucell)
&(this->LOC),
&(this->GG), // mohan add 2024-04-01
&(this->GK), // mohan add 2024-04-01
&(this->uhm),
&(this->LOWF),
this->pw_rho,
this->pw_big);
Expand All @@ -131,7 +130,7 @@ void ESolver_KS_LCAO<TK, TR>::init(Input& inp, UnitCell& ucell)
//------------------init Basis_lcao----------------------

//! pass Hamilt-pointer to Operator
this->gen_h.LM = this->uhm.LM = &this->LM;
this->gen_h.LM = &this->LM;

//! pass basis-pointer to EState and Psi
this->LOC.ParaV = this->LOWF.ParaV = this->LM.ParaV = &(this->orb_con.ParaV);
Expand Down Expand Up @@ -259,7 +258,6 @@ void ESolver_KS_LCAO<TK, TR>::init_after_vc(Input& inp, UnitCell& ucell)
&(this->LOC),
&(this->GG), // mohan add 2024-04-01
&(this->GK), // mohan add 2024-04-01
&(this->uhm),
&(this->LOWF),
this->pw_rho,
this->pw_big);
Expand Down Expand Up @@ -426,7 +424,7 @@ void ESolver_KS_LCAO<TK, TR>::post_process(void)
{
ModuleIO::write_proj_band_lcao(
this->psi,
this->uhm,
this->LM,
this->pelec,
this->kv,
GlobalC::ucell,
Expand All @@ -437,7 +435,8 @@ void ESolver_KS_LCAO<TK, TR>::post_process(void)
{
ModuleIO::out_dos_nao(
this->psi,
this->uhm,
this->LM,
this->orb_con.ParaV,
this->pelec->ekb,
this->pelec->wg,
INPUT.dos_edelta_ev,
Expand Down Expand Up @@ -1204,10 +1203,10 @@ ModuleIO::Output_Mat_Sparse<TK> ESolver_KS_LCAO<TK, TR>::create_Output_Mat_Spars
istep,
this->pelec->pot->get_effective_v(),
*this->LOWF.ParaV,
this->uhm,
this->gen_h, // mohan add 2024-04-02
this->gen_h, // mohan add 2024-04-06
this->GK, // mohan add 2024-04-01
this->LM,
GlobalC::GridD, // mohan add 2024-04-06
this->kv,
this->p_hamilt);
}
Expand Down
9 changes: 5 additions & 4 deletions source/module_esolver/esolver_ks_lcao.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "module_hamilt_lcao/hamilt_lcaodft/record_adj.h"
#include "module_hamilt_lcao/hamilt_lcaodft/local_orbital_charge.h"
#include "module_hamilt_lcao/hamilt_lcaodft/local_orbital_wfc.h"
#include "module_hamilt_lcao/hamilt_lcaodft/LCAO_hamilt.h"
// for grid integration
#include "module_hamilt_lcao/module_gint/gint_gamma.h"
#include "module_hamilt_lcao/module_gint/gint_k.h"
Expand Down Expand Up @@ -76,9 +75,6 @@ namespace ModuleESolver
// we will get rid of this class soon, don't use it, mohan 2024-03-28
Local_Orbital_Charge LOC;

// we will get rid of this class soon, don't use it, mohan 2024-03-28
LCAO_Hamilt uhm;

LCAO_gen_fixedH gen_h; // mohan add 2024-04-02

// used for k-dependent grid integration.
Expand Down Expand Up @@ -106,6 +102,7 @@ namespace ModuleESolver
//--------------common for all calculation, not only scf-------------
// set matrix and grid integral
void set_matrix_grid(Record_adj& ra);

void beforesolver(const int istep);
//----------------------------------------------------------------------

Expand All @@ -127,11 +124,15 @@ namespace ModuleESolver
std::shared_ptr<Exx_LRI<double>> exx_lri_double = nullptr;
std::shared_ptr<Exx_LRI<std::complex<double>>> exx_lri_complex = nullptr;
#endif

private:

// tmp interfaces before sub-modules are refactored
void dftu_cal_occup_m(const int& iter, const std::vector<std::vector<TK>>& dm) const;

#ifdef __DEEPKS
void dpks_cal_e_delta_band(const std::vector<std::vector<TK>>& dm) const;

void dpks_cal_projected_DM(const elecstate::DensityMatrix<TK, double>* dm) const;
#endif

Expand Down
9 changes: 7 additions & 2 deletions source/module_esolver/esolver_ks_lcao_elec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ void ESolver_KS_LCAO<std::complex<double>, double>::get_S(void)
dynamic_cast<hamilt::OperatorLCAO<std::complex<double>, double>*>(this->p_hamilt->ops)->contributeHR();
}

ModuleIO::output_S_R(this->uhm, this->p_hamilt, "SR.csr");
ModuleIO::output_SR(orb_con.ParaV, this->LM, GlobalC::GridD, this->p_hamilt, "SR.csr");

return;
}


Expand Down Expand Up @@ -525,7 +527,10 @@ void ESolver_KS_LCAO<std::complex<double>, std::complex<double>>::get_S(void)
dynamic_cast<hamilt::OperatorLCAO<std::complex<double>, std::complex<double>>*>(this->p_hamilt->ops)
->contributeHR();
}
ModuleIO::output_S_R(this->uhm, this->p_hamilt, "SR.csr");

ModuleIO::output_SR(orb_con.ParaV, this->LM, GlobalC::GridD, this->p_hamilt, "SR.csr");

return;
}


Expand Down
2 changes: 1 addition & 1 deletion source/module_esolver/esolver_ks_lcao_tddft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void ESolver_KS_LCAO_TDDFT::init(Input& inp, UnitCell& ucell)
//------------------init Hamilt_lcao----------------------

// pass Hamilt-pointer to Operator
this->gen_h.LM = this->uhm.LM = &this->LM;
this->gen_h.LM = &this->LM;
// pass basis-pointer to EState and Psi
this->LOC.ParaV = this->LOWF.ParaV = this->LM.ParaV;

Expand Down
1 change: 0 additions & 1 deletion source/module_esolver/esolver_ks_lcao_tddft.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "esolver_ks_lcao.h"
#include "module_basis/module_ao/ORB_control.h"
#include "module_psi/psi.h"
#include "module_hamilt_lcao/hamilt_lcaodft/LCAO_hamilt.h"
#include "module_hamilt_lcao/hamilt_lcaodft/local_orbital_charge.h"
#include "module_hamilt_lcao/hamilt_lcaodft/local_orbital_wfc.h"
#include "module_hamilt_lcao/hamilt_lcaodft/record_adj.h"
Expand Down
76 changes: 60 additions & 16 deletions source/module_esolver/esolver_ks_lcao_tmpfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,111 @@
#include "module_hamilt_lcao/module_deepks/LCAO_deepks.h"
#include "module_hamilt_pw/hamilt_pwdft/global.h"
#endif

namespace ModuleESolver
{

using namespace std;

//! dftu occupation matrix for gamma only using dm(double)
template <>
void ESolver_KS_LCAO<double, double>::dftu_cal_occup_m(const int& iter, const std::vector<std::vector<double>>& dm)const
void ESolver_KS_LCAO<double, double>::dftu_cal_occup_m(
const int& iter,
const vector<vector<double>>& dm)const
{
GlobalC::dftu.cal_occup_m_gamma(iter, dm, this->p_chgmix->get_mixing_beta());
GlobalC::dftu.cal_occup_m_gamma(
iter,
dm,
this->p_chgmix->get_mixing_beta());
}

//! dftu occupation matrix for multiple k-points using dm(complex)
template <>
void ESolver_KS_LCAO<std::complex<double>, double>::dftu_cal_occup_m(const int& iter, const std::vector<std::vector<std::complex<double>>>& dm)const
void ESolver_KS_LCAO<complex<double>, double>::dftu_cal_occup_m(
const int& iter,
const vector<vector<complex<double>>>& dm)const
{
GlobalC::dftu.cal_occup_m_k(iter, dm, this->kv, this->p_chgmix->get_mixing_beta(), this->p_hamilt);
GlobalC::dftu.cal_occup_m_k(
iter,
dm,
this->kv,
this->p_chgmix->get_mixing_beta(),
this->p_hamilt);
}

//! dftu occupation matrix
template <>
void ESolver_KS_LCAO<std::complex<double>, std::complex<double>>::dftu_cal_occup_m(const int& iter, const std::vector<std::vector<std::complex<double>>>& dm)const
void ESolver_KS_LCAO<complex<double>, complex<double>>::dftu_cal_occup_m(
const int& iter,
const vector<vector<complex<double>>>& dm)const
{
GlobalC::dftu.cal_occup_m_k(iter, dm, this->kv, this->p_chgmix->get_mixing_beta(), this->p_hamilt);
GlobalC::dftu.cal_occup_m_k(
iter,
dm,
this->kv,
this->p_chgmix->get_mixing_beta(),
this->p_hamilt);
}

#ifdef __DEEPKS
template<>
void ESolver_KS_LCAO<double, double>::dpks_cal_e_delta_band(const std::vector<std::vector<double>>& dm)const
void ESolver_KS_LCAO<double, double>::dpks_cal_e_delta_band(
const vector<vector<double>>& dm)const
{
GlobalC::ld.cal_e_delta_band(dm);
}


template<>
void ESolver_KS_LCAO<std::complex<double>, double>::dpks_cal_e_delta_band(const std::vector<std::vector<std::complex<double>>>& dm)const
void ESolver_KS_LCAO<complex<double>, double>::dpks_cal_e_delta_band(
const vector<vector<complex<double>>>& dm)const
{
GlobalC::ld.cal_e_delta_band_k(dm, this->kv.nks);
}


template<>
void ESolver_KS_LCAO<std::complex<double>, std::complex<double>>::dpks_cal_e_delta_band(const std::vector<std::vector<std::complex<double>>>& dm)const
void ESolver_KS_LCAO<complex<double>, complex<double>>::dpks_cal_e_delta_band(
const vector<vector<complex<double>>>& dm)const
{
GlobalC::ld.cal_e_delta_band_k(dm, this->kv.nks);
}


template<>
void ESolver_KS_LCAO<double, double>::dpks_cal_projected_DM(const elecstate::DensityMatrix<double, double>* dm)const
void ESolver_KS_LCAO<double, double>::dpks_cal_projected_DM(
const elecstate::DensityMatrix<double, double>* dm)const
{
GlobalC::ld.cal_projected_DM(dm, //this->LOC.dm_gamma,
GlobalC::ld.cal_projected_DM(dm,
GlobalC::ucell,
GlobalC::ORB,
GlobalC::GridD);
}


template<>
void ESolver_KS_LCAO<std::complex<double>, double>::dpks_cal_projected_DM(const elecstate::DensityMatrix<std::complex<double>, double>* dm)const
void ESolver_KS_LCAO<complex<double>, double>::dpks_cal_projected_DM(
const elecstate::DensityMatrix<complex<double>, double>* dm)const
{
GlobalC::ld.cal_projected_DM_k(dm, //this->LOC.dm_k,
GlobalC::ld.cal_projected_DM_k(dm,
GlobalC::ucell,
GlobalC::ORB,
GlobalC::GridD,
this->kv.nks,
this->kv.kvec_d);
}


template<>
void ESolver_KS_LCAO<std::complex<double>, std::complex<double>>::dpks_cal_projected_DM(const elecstate::DensityMatrix<std::complex<double>, double>* dm)const
void ESolver_KS_LCAO<complex<double>, complex<double>>::dpks_cal_projected_DM(
const elecstate::DensityMatrix<complex<double>, double>* dm)const
{
GlobalC::ld.cal_projected_DM_k(dm, //this->LOC.dm_k,
GlobalC::ld.cal_projected_DM_k(dm,
GlobalC::ucell,
GlobalC::ORB,
GlobalC::GridD,
this->kv.nks,
this->kv.kvec_d);
}
#endif
}
}
26 changes: 20 additions & 6 deletions source/module_hamilt_general/hamilt.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ class Hamilt
virtual void updateHk(const int ik){return;}

/// refresh status of Hamiltonian, for example, refresh H(R) and S(R) in LCAO case
virtual void refresh(){return;}
virtual void refresh(void){return;}

/// core function: for solving eigenvalues of Hamiltonian with iterative method
virtual void hPsi(const T* psi_in, T* hpsi, const size_t size) const{return;}
virtual void hPsi(
const T* psi_in,
T* hpsi,
const size_t size) const
{
return;
}

virtual void sPsi(const T* psi_in, // psi
T* spsi, // spsi
const int nrow, // dimension of spsi: nbands * nrow
Expand All @@ -35,21 +42,28 @@ class Hamilt
syncmem_op()(this->ctx, this->ctx, spsi, psi_in, static_cast<size_t>(nbands * nrow));
}

/// core function: return H(k) and S(k) matrixs for direct solving eigenvalues.
virtual void matrix(MatrixBlock<std::complex<double>> &hk_in, MatrixBlock<std::complex<double>> &sk_in){return;}
virtual void matrix(MatrixBlock<double> &hk_in, MatrixBlock<double> &sk_in){return;}
/// core function: return H(k) and S(k) matrixs for direct solving eigenvalues.
virtual void matrix(
MatrixBlock<std::complex<double>> &hk_in,
MatrixBlock<std::complex<double>> &sk_in){return;}

virtual void matrix(
MatrixBlock<double> &hk_in,
MatrixBlock<double> &sk_in){return;}

std::string classname = "none";

int non_first_scf=0;

/// first node operator, add operations from each operators
Operator<T, Device>* ops = nullptr;

protected:

Device* ctx = {};
using syncmem_op = psi::memory::synchronize_memory_op<T, Device, Device>;
};

} // namespace hamilt

#endif
#endif
7 changes: 5 additions & 2 deletions source/module_hamilt_lcao/hamilt_lcaodft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ if(ENABLE_LCAO)
fvl_dphi_k.cpp
fvnl_dbeta_k.cpp
LCAO_gen_fixedH.cpp
LCAO_hamilt.cpp
grid_init.cpp
sparse_format.cpp
spar_dh.cpp
spar_exx.cpp
spar_hsr.cpp
spar_st.cpp
spar_u.cpp
LCAO_matrix.cpp
LCAO_nnr.cpp
record_adj.cpp
Expand Down
Loading