Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/source_lcao/module_operator_lcao/ekinetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ hamilt::EKinetic<hamilt::OperatorLCAO<TK, TR>>::EKinetic(

// destructor
template <typename TK, typename TR>
hamilt::EKinetic<hamilt::OperatorLCAO<TK, TR>>::~EKinetic<hamilt::OperatorLCAO<TK, TR>>()
hamilt::EKinetic<hamilt::OperatorLCAO<TK, TR>>::~EKinetic()
{
if (this->allocated)
{
Expand Down
5 changes: 0 additions & 5 deletions source/source_lcao/module_operator_lcao/ekinetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
namespace hamilt
{

#ifndef __EKINETICTEMPLATE
#define __EKINETICTEMPLATE

/// The EKinetic class template inherits from class T
/// it is used to calculate the electronic kinetic
/// Template parameters:
Expand All @@ -25,8 +22,6 @@ class EKinetic : public T
{
};

#endif

/// EKinetic class template specialization for OperatorLCAO<TK> base class
/// It is used to calculate the electronic kinetic matrix in real space and fold it to k-space
/// HR = <psi_{mu, 0}|-\Nabla^2|psi_{nu, R}>
Expand Down
8 changes: 0 additions & 8 deletions source/source_pw/module_pwdft/op_pw_ekin.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@

namespace hamilt {

// Not needed anymore
#ifndef __EKINETICTEMPLATE
#define __EKINETICTEMPLATE

template<class T> class Ekinetic : public T {};
// template<typename R, typename Device = base_device::DEVICE_CPU>
// class Ekinetic : public OperatorPW<T, Device> {};

#endif

// template<typename R, typename Device = base_device::DEVICE_CPU>
// class Ekinetic : public OperatorPW<T, Device>
Expand Down
Loading