Skip to content

Commit

Permalink
Fix: compiling warning in veff_lcao.cpp (#3901)
Browse files Browse the repository at this point in the history
Co-authored-by: dyzheng <zhengdy@bjaisi.com>
  • Loading branch information
dyzheng and dyzheng committed Apr 3, 2024
1 parent b62a807 commit d6f00d0
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
namespace hamilt
{

template class Veff<OperatorLCAO<double, double>>;

template class Veff<OperatorLCAO<std::complex<double>, double>>;

template class Veff<OperatorLCAO<std::complex<double>, std::complex<double>>>;

// initialize_HR()
template <typename TK, typename TR>
Expand Down Expand Up @@ -159,4 +154,11 @@ void Veff<OperatorLCAO<double, double>>::contributeHR()
ModuleBase::timer::tick("Veff", "contributeHR");
}

}
// definition of class template should in the end of file to avoid compiling warning
template class Veff<OperatorLCAO<double, double>>;

template class Veff<OperatorLCAO<std::complex<double>, double>>;

template class Veff<OperatorLCAO<std::complex<double>, std::complex<double>>>;

}

0 comments on commit d6f00d0

Please sign in to comment.