mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-27 22:25:56 +01:00
Namespace
This commit is contained in:
parent
c978c88521
commit
d29fa23ebc
@ -25,11 +25,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
See the full license in the file "LICENSE" in the top level distribution
|
See the full license in the file "LICENSE" in the top level distribution
|
||||||
directory
|
directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#ifndef FERMIONOPERATOR_MODULES_H
|
#ifndef FERMIONOPERATOR_MODULES_H
|
||||||
#define FERMIONOPERATOR_MODULES_H
|
#define FERMIONOPERATOR_MODULES_H
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
// Fermion operators
|
// Fermion operators
|
||||||
@ -48,7 +48,7 @@ class FermionOperatorModule
|
|||||||
protected:
|
protected:
|
||||||
std::unique_ptr< FOType<FermionImpl> > FOPtr;
|
std::unique_ptr< FOType<FermionImpl> > FOPtr;
|
||||||
std::vector< QCD::GridModule* > GridRefs;
|
std::vector< QCD::GridModule* > GridRefs;
|
||||||
public:
|
public:
|
||||||
typedef HMCModuleBase< QCD::FermionOperator<FermionImpl> > Base;
|
typedef HMCModuleBase< QCD::FermionOperator<FermionImpl> > Base;
|
||||||
typedef typename Base::Product Product;
|
typedef typename Base::Product Product;
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ protected:
|
|||||||
return FOPtr.get();
|
return FOPtr.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void initialize() = 0;
|
virtual void initialize() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ protected:
|
|||||||
template <char const *str, class FermionImpl, class ReaderClass >
|
template <char const *str, class FermionImpl, class ReaderClass >
|
||||||
class HMC_FermionOperatorModuleFactory
|
class HMC_FermionOperatorModuleFactory
|
||||||
: public Factory < FermionOperatorModuleBase<QCD::FermionOperator<FermionImpl> > , Reader<ReaderClass> > {
|
: public Factory < FermionOperatorModuleBase<QCD::FermionOperator<FermionImpl> > , Reader<ReaderClass> > {
|
||||||
public:
|
public:
|
||||||
// use SINGLETON FUNCTOR MACRO HERE
|
// use SINGLETON FUNCTOR MACRO HERE
|
||||||
typedef Reader<ReaderClass> TheReader;
|
typedef Reader<ReaderClass> TheReader;
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ class HMC_FermionOperatorModuleFactory
|
|||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HMC_FermionOperatorModuleFactory(void) = default;
|
HMC_FermionOperatorModuleFactory(void) = default;
|
||||||
std::string obj_type() const {
|
std::string obj_type() const {
|
||||||
return std::string(str);
|
return std::string(str);
|
||||||
@ -117,11 +117,11 @@ class HMC_FermionOperatorModuleFactory
|
|||||||
|
|
||||||
|
|
||||||
extern char fermionop_string[];
|
extern char fermionop_string[];
|
||||||
namespace QCD{
|
|
||||||
|
|
||||||
// Modules
|
// Modules
|
||||||
class WilsonFermionParameters : Serializable {
|
class WilsonFermionParameters : Serializable {
|
||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(WilsonFermionParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(WilsonFermionParameters,
|
||||||
RealD, mass);
|
RealD, mass);
|
||||||
};
|
};
|
||||||
@ -143,7 +143,7 @@ class WilsonFermionModule: public FermionOperatorModule<WilsonFermion, FermionIm
|
|||||||
|
|
||||||
|
|
||||||
class MobiusFermionParameters : Serializable {
|
class MobiusFermionParameters : Serializable {
|
||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(MobiusFermionParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(MobiusFermionParameters,
|
||||||
RealD, mass,
|
RealD, mass,
|
||||||
RealD, M5,
|
RealD, M5,
|
||||||
@ -174,7 +174,7 @@ class MobiusFermionModule: public FermionOperatorModule<MobiusFermion, FermionIm
|
|||||||
|
|
||||||
|
|
||||||
class DomainWallFermionParameters : Serializable {
|
class DomainWallFermionParameters : Serializable {
|
||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(DomainWallFermionParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(DomainWallFermionParameters,
|
||||||
RealD, mass,
|
RealD, mass,
|
||||||
RealD, M5,
|
RealD, M5,
|
||||||
@ -203,7 +203,7 @@ class DomainWallFermionModule: public FermionOperatorModule<DomainWallFermion, F
|
|||||||
|
|
||||||
|
|
||||||
class DomainWallEOFAFermionParameters : Serializable {
|
class DomainWallEOFAFermionParameters : Serializable {
|
||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(DomainWallEOFAFermionParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(DomainWallEOFAFermionParameters,
|
||||||
RealD, mq1,
|
RealD, mq1,
|
||||||
RealD, mq2,
|
RealD, mq2,
|
||||||
@ -235,9 +235,6 @@ class DomainWallEOFAFermionModule: public FermionOperatorModule<DomainWallEOFAFe
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NAMESPACE_END(Grid);
|
||||||
} // QCD
|
|
||||||
} // Grid
|
|
||||||
|
|
||||||
|
|
||||||
#endif //FERMIONOPERATOR_MODULES_H
|
#endif //FERMIONOPERATOR_MODULES_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user