From 3b61ff6a84580218e206d04d262c922325ee4a30 Mon Sep 17 00:00:00 2001 From: Chen Nuo <49788094+Cstandardlib@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:55:47 +0800 Subject: [PATCH] Remove TensorMap after cg call --- source/module_hsolver/hsolver_pw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/module_hsolver/hsolver_pw.cpp b/source/module_hsolver/hsolver_pw.cpp index 0c1ad2e8b8..3d303a8627 100644 --- a/source/module_hsolver/hsolver_pw.cpp +++ b/source/module_hsolver/hsolver_pw.cpp @@ -479,7 +479,7 @@ void HSolverPW::hamiltSolvePsiK(hamilt::Hamilt* hm, cg.diag(hpsi_func, spsi_func, psi_tensor, eigen_tensor, this->ethr_band, prec_tensor); // TODO: Double check tensormap's potential problem - ct::TensorMap(psi.get_pointer(), psi_tensor, {psi.get_nbands(), psi.get_nbasis()}).sync(psi_tensor); + // ct::TensorMap(psi.get_pointer(), psi_tensor, {psi.get_nbands(), psi.get_nbasis()}).sync(psi_tensor); } else if (this->method == "bpcg") {