mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Namespace
This commit is contained in:
parent
813af84ae8
commit
2f38fe8d45
@ -26,21 +26,19 @@ 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 GRID_HMC_MODULES
|
#ifndef GRID_HMC_MODULES
|
||||||
#define GRID_HMC_MODULES
|
#define GRID_HMC_MODULES
|
||||||
|
|
||||||
|
|
||||||
#include "HMC_GridModules.h"
|
#include "HMC_GridModules.h"
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
namespace QCD {
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
struct RNGModuleParameters: Serializable {
|
struct RNGModuleParameters: Serializable {
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(RNGModuleParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(RNGModuleParameters,
|
||||||
std::string, serial_seeds,
|
std::string, serial_seeds,
|
||||||
std::string, parallel_seeds,);
|
std::string, parallel_seeds,);
|
||||||
|
|
||||||
std::vector<int> getSerialSeeds(){return strToVec<int>(serial_seeds);}
|
std::vector<int> getSerialSeeds(){return strToVec<int>(serial_seeds);}
|
||||||
std::vector<int> getParallelSeeds(){return strToVec<int>(parallel_seeds);}
|
std::vector<int> getParallelSeeds(){return strToVec<int>(parallel_seeds);}
|
||||||
@ -56,9 +54,9 @@ struct RNGModuleParameters: Serializable {
|
|||||||
|
|
||||||
// Random number generators module
|
// Random number generators module
|
||||||
class RNGModule{
|
class RNGModule{
|
||||||
GridSerialRNG sRNG_;
|
GridSerialRNG sRNG_;
|
||||||
std::unique_ptr<GridParallelRNG> pRNG_;
|
std::unique_ptr<GridParallelRNG> pRNG_;
|
||||||
RNGModuleParameters Params_;
|
RNGModuleParameters Params_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -93,19 +91,16 @@ public:
|
|||||||
/// Smearing module
|
/// Smearing module
|
||||||
template <class ImplementationPolicy>
|
template <class ImplementationPolicy>
|
||||||
class SmearingModule{
|
class SmearingModule{
|
||||||
virtual void get_smearing();
|
virtual void get_smearing();
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class ImplementationPolicy>
|
template <class ImplementationPolicy>
|
||||||
class StoutSmearingModule: public SmearingModule<ImplementationPolicy>{
|
class StoutSmearingModule: public SmearingModule<ImplementationPolicy>{
|
||||||
SmearedConfiguration<ImplementationPolicy> SmearingPolicy;
|
SmearedConfiguration<ImplementationPolicy> SmearingPolicy;
|
||||||
};
|
};
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
} // namespace QCD
|
|
||||||
} // namespace Grid
|
|
||||||
|
|
||||||
#endif // GRID_HMC_MODULES
|
#endif // GRID_HMC_MODULES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user