From db42f47934fd2c814bf7a4d912d843b8042b47b3 Mon Sep 17 00:00:00 2001 From: maki49 <1579492865@qq.com> Date: Thu, 8 Aug 2024 15:08:00 +0800 Subject: [PATCH] remove the heritance of HSolverLR --- source/module_lr/hsolver_lrtd.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/module_lr/hsolver_lrtd.h b/source/module_lr/hsolver_lrtd.h index 36dcf61a37..c04a0fc3e9 100644 --- a/source/module_lr/hsolver_lrtd.h +++ b/source/module_lr/hsolver_lrtd.h @@ -5,7 +5,7 @@ namespace LR { template - class HSolverLR : public hsolver::HSolver + class HSolverLR { using Real = typename GetTypeReal::type; const int& nk; @@ -15,16 +15,16 @@ namespace LR public: HSolverLR(const int& nk_in, const int& npairs_in, const int& ispin_solve_in = 0, const bool& out_wfc_lr_in = false) :nk(nk_in), npairs(npairs_in), out_wfc_lr(out_wfc_lr_in), ispin_solve(ispin_solve_in) {}; - virtual Real set_diagethr(Real diag_ethr_in, const int istep, const int iter, const Real ethr) override + Real set_diagethr(Real diag_ethr_in, const int istep, const int iter, const Real ethr) { this->diag_ethr = ethr; return ethr; } - virtual void solve(hamilt::Hamilt* pHamilt, - psi::Psi& psi, - elecstate::ElecState* pes, - const std::string method_in, - const bool skip_charge = false) override; + void solve(hamilt::Hamilt* pHamilt, + psi::Psi& psi, + elecstate::ElecState* pes, + const std::string method_in, + const bool skip_charge = false); Real diag_ethr = 0.0; // threshold for diagonalization