1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-27 22:25:56 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 22:08:25 +00:00
parent 1f49f781bf
commit f4c06ed8c0

View File

@ -25,13 +25,12 @@ 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 WILSONFLOW_H #ifndef WILSONFLOW_H
#define WILSONFLOW_H #define WILSONFLOW_H
namespace Grid { NAMESPACE_BEGIN(Grid);
namespace QCD {
template <class Gimpl> template <class Gimpl>
class WilsonFlow: public Smear<Gimpl>{ class WilsonFlow: public Smear<Gimpl>{
@ -46,7 +45,7 @@ class WilsonFlow: public Smear<Gimpl>{
void evolve_step_adaptive(typename Gimpl::GaugeField&, RealD); void evolve_step_adaptive(typename Gimpl::GaugeField&, RealD);
RealD tau(unsigned int t)const {return epsilon*(t+1.0); } RealD tau(unsigned int t)const {return epsilon*(t+1.0); }
public: public:
INHERIT_GIMPL_TYPES(Gimpl) INHERIT_GIMPL_TYPES(Gimpl)
explicit WilsonFlow(unsigned int Nstep, RealD epsilon, unsigned int interval = 1): explicit WilsonFlow(unsigned int Nstep, RealD epsilon, unsigned int interval = 1):
@ -169,9 +168,9 @@ void WilsonFlow<Gimpl>::smear(GaugeField& out, const GaugeField& in) const {
evolve_step(out); evolve_step(out);
auto end = std::chrono::high_resolution_clock::now(); auto end = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> diff = end - start; std::chrono::duration<double> diff = end - start;
#ifdef WF_TIMING #ifdef WF_TIMING
std::cout << "Time to evolve " << diff.count() << " s\n"; std::cout << "Time to evolve " << diff.count() << " s\n";
#endif #endif
std::cout << GridLogMessage << "[WilsonFlow] Energy density (plaq) : " std::cout << GridLogMessage << "[WilsonFlow] Energy density (plaq) : "
<< step << " " << step << " "
<< energyDensityPlaquette(step,out) << std::endl; << energyDensityPlaquette(step,out) << std::endl;
@ -207,7 +206,6 @@ void WilsonFlow<Gimpl>::smear_adaptive(GaugeField& out, const GaugeField& in, Re
} }
} // namespace QCD NAMESPACE_END(Grid);
} // namespace Grid
#endif // WILSONFLOW_H #endif // WILSONFLOW_H