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>>; + +}