Skip to content

Commit

Permalink
remove my_conj func from hsolver_lcao (deepmodeling#5128)
Browse files Browse the repository at this point in the history
  • Loading branch information
haozhihan authored and A-006 committed Sep 19, 2024
1 parent 5f7efd7 commit 99c4048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions source/module_hsolver/hsolver_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ void HSolverLCAO<T, Device>::hamiltSolvePsiK(hamilt::Hamilt<T>* hm, psi::Psi<T>&
{
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]);
}
}

Expand Down
12 changes: 0 additions & 12 deletions source/module_hsolver/hsolver_lcao.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ class HSolverLCAO
std::string method = "none";
};

template <typename T>
inline T my_conj(T value)
{
return value;
}

template <>
inline std::complex<double> my_conj(std::complex<double> value)
{
return std::conj(value);
}

} // namespace hsolver

#endif

0 comments on commit 99c4048

Please sign in to comment.