1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Namespace

This commit is contained in:
paboyle 2018-01-14 22:13:02 +00:00
parent e2c39945b3
commit 34a788331f

View File

@ -25,25 +25,23 @@ 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 */
/*! /*!
@brief Declaration of Smear_APE class for APE smearing @brief Declaration of Smear_APE class for APE smearing
*/ */
#ifndef APE_SMEAR_ #ifndef APE_SMEAR_
#define APE_SMEAR_ #define APE_SMEAR_
namespace Grid { NAMESPACE_BEGIN(Grid);
namespace QCD {
/*! @brief APE type smearing of link variables. */
/*! @brief APE type smearing of link variables. */ template <class Gimpl>
template <class Gimpl> class Smear_APE: public Smear<Gimpl>{
class Smear_APE: public Smear<Gimpl>{ private:
private:
const std::vector<double> rho;/*!< Array of weights */ const std::vector<double> rho;/*!< Array of weights */
//This member must be private - we do not want to control from outside //This member must be private - we do not want to control from outside
std::vector<double> set_rho(const double common_rho) const { std::vector<double> set_rho(const double common_rho) const {
std::vector<double> res; std::vector<double> res;
@ -52,7 +50,7 @@ directory
return res; return res;
} }
public: public:
// Defines the gauge field types // Defines the gauge field types
INHERIT_GIMPL_TYPES(Gimpl) INHERIT_GIMPL_TYPES(Gimpl)
@ -84,7 +82,7 @@ directory
} }
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void derivative(GaugeField& SigmaTerm, void derivative(GaugeField& SigmaTerm,
const GaugeField& iLambda, const GaugeField& iLambda,
const GaugeField& U)const{ const GaugeField& U)const{
@ -149,10 +147,8 @@ directory
} }
} }
} }
}; };
NAMESPACE_END(Grid);
}// namespace QCD
}//namespace Grid
#endif #endif