From 4921a6ef948e683a43384a18b443792c28192ed9 Mon Sep 17 00:00:00 2001 From: dyzheng Date: Tue, 2 Apr 2024 21:38:39 +0800 Subject: [PATCH] Fix: compiling warning in veff_lcao.cpp --- .../hamilt_lcaodft/operator_lcao/veff_lcao.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/veff_lcao.cpp b/source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/veff_lcao.cpp index a0d159051c6..b2490f18ab0 100644 --- a/source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/veff_lcao.cpp +++ b/source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/veff_lcao.cpp @@ -6,11 +6,6 @@ namespace hamilt { -template class Veff>; - -template class Veff, double>>; - -template class Veff, std::complex>>; // initialize_HR() template @@ -159,4 +154,11 @@ void Veff>::contributeHR() ModuleBase::timer::tick("Veff", "contributeHR"); } -} \ No newline at end of file +// definition of class template should in the end of file to avoid compiling warning +template class Veff>; + +template class Veff, double>>; + +template class Veff, std::complex>>; + +}