From 4520525f76ab80d4c97d5332f0106558a5b8998c Mon Sep 17 00:00:00 2001 From: Haozhi Han Date: Wed, 18 Sep 2024 16:42:57 +0800 Subject: [PATCH] remove my_conj func from hsolver_lcao --- source/module_hsolver/hsolver_lcao.cpp | 4 ++-- source/module_hsolver/hsolver_lcao.h | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/source/module_hsolver/hsolver_lcao.cpp b/source/module_hsolver/hsolver_lcao.cpp index 6d7692ccf3..66818d6eb7 100644 --- a/source/module_hsolver/hsolver_lcao.cpp +++ b/source/module_hsolver/hsolver_lcao.cpp @@ -208,8 +208,8 @@ void HSolverLCAO::hamiltSolvePsiK(hamilt::Hamilt* hm, psi::Psi& { for (int j = i; j < h_mat.col; j++) { - h_mat.p[h_mat.row * j + i] = hsolver::my_conj(h_mat.p[h_mat.row * i + j]); - s_mat.p[s_mat.row * j + i] = hsolver::my_conj(s_mat.p[s_mat.row * i + j]); + h_mat.p[h_mat.row * j + i] = hsolver::get_conj(h_mat.p[h_mat.row * i + j]); + s_mat.p[s_mat.row * j + i] = hsolver::get_conj(s_mat.p[s_mat.row * i + j]); } } diff --git a/source/module_hsolver/hsolver_lcao.h b/source/module_hsolver/hsolver_lcao.h index 9d27f50c19..8dbb3e52f8 100644 --- a/source/module_hsolver/hsolver_lcao.h +++ b/source/module_hsolver/hsolver_lcao.h @@ -36,18 +36,6 @@ class HSolverLCAO std::string method = "none"; }; -template -inline T my_conj(T value) -{ - return value; -} - -template <> -inline std::complex my_conj(std::complex value) -{ - return std::conj(value); -} - } // namespace hsolver #endif \ No newline at end of file