Skip to content

Commit

Permalink
keep the base definition of operator class in ks_pw consistent with t…
Browse files Browse the repository at this point in the history
…hat in ks_lcao (#1446)
  • Loading branch information
denghuilu committed Oct 27, 2022
1 parent 432ea23 commit 42ca7e9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
7 changes: 4 additions & 3 deletions source/module_hamilt/ks_pw/ekinetic_pw.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ namespace hamilt {
#ifndef __EKINETICTEMPLATE
#define __EKINETICTEMPLATE

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

#endif

Expand Down
13 changes: 7 additions & 6 deletions source/module_hamilt/ks_pw/meta_pw.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

namespace hamilt {

#ifndef __METATEMPLATE
#define __METATEMPLATE
#ifndef __METATEMPLATE
#define __METATEMPLATE

// template<class T> class Meta : public T {};
template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
class Meta : public OperatorPW<FPTYPE, Device> {};
template<class T> class Meta : public T
{};
// template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
// class Meta : public OperatorPW<FPTYPE, Device> {};

#endif
#endif

template<typename FPTYPE, typename Device>
class Meta<OperatorPW<FPTYPE, Device>> : public OperatorPW<FPTYPE, Device>
Expand Down
14 changes: 7 additions & 7 deletions source/module_hamilt/ks_pw/nonlocal_pw.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

namespace hamilt {

#ifndef NONLOCALTEMPLATE_H
#define NONLOCALTEMPLATE_H
#ifndef NONLOCALTEMPLATE_H
#define NONLOCALTEMPLATE_H

// template<class T> class Nonlocal : public T {};
template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
class Nonlocal : public OperatorPW<FPTYPE, Device> {};
template<class T> class Nonlocal : public T
{};
// template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
// class Nonlocal : public OperatorPW<FPTYPE, Device> {};


#endif
#endif

template<typename FPTYPE, typename Device>
class Nonlocal<OperatorPW<FPTYPE, Device>> : public OperatorPW<FPTYPE, Device>
Expand Down
13 changes: 7 additions & 6 deletions source/module_hamilt/ks_pw/veff_pw.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

namespace hamilt {

#ifndef __VEFFTEMPLATE
#define __VEFFTEMPLATE
#ifndef __VEFFTEMPLATE
#define __VEFFTEMPLATE

// template<class T> class Veff : public T {};
template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
class Veff : public OperatorPW<FPTYPE, Device> {};
template<class T> class Veff : public T
{};
// template<typename FPTYPE, typename Device = psi::DEVICE_CPU>
// class Veff : public OperatorPW<FPTYPE, Device> {};

#endif
#endif

template<typename FPTYPE, typename Device>
class Veff<OperatorPW<FPTYPE, Device>> : public OperatorPW<FPTYPE, Device>
Expand Down

0 comments on commit 42ca7e9

Please sign in to comment.