From e1c0dafaf1889e90ae85252e23d5eff53ca9da44 Mon Sep 17 00:00:00 2001 From: YuLiu98 Date: Sat, 8 Mar 2025 07:56:12 +0800 Subject: [PATCH] Refactor: decrease memory cost of get_s --- source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp b/source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp index ef5b86ef26..5a4edbba06 100644 --- a/source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp +++ b/source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp @@ -56,9 +56,9 @@ HamiltLCAO::HamiltLCAO(const UnitCell& ucell, this->kv = &kv_in; // Real space Hamiltonian is inited with template TR - this->hR = new HContainer(paraV); + // this->hR = new HContainer(paraV); this->sR = new HContainer(paraV); - this->hsk = new HS_Matrix_K(paraV); + // this->hsk = new HS_Matrix_K(paraV); this->getOperator() = new OverlapNew>(this->hsk, this->kv->kvec_d,