mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Namespace
This commit is contained in:
parent
e61189db3f
commit
df29cc19ab
@ -25,18 +25,17 @@ 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 HMC_PLAQUETTE_H
|
#ifndef HMC_PLAQUETTE_H
|
||||||
#define HMC_PLAQUETTE_H
|
#define HMC_PLAQUETTE_H
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
namespace QCD {
|
|
||||||
|
|
||||||
// this is only defined for a gauge theory
|
// this is only defined for a gauge theory
|
||||||
template <class Impl>
|
template <class Impl>
|
||||||
class PlaquetteLogger : public HmcObservable<typename Impl::Field> {
|
class PlaquetteLogger : public HmcObservable<typename Impl::Field> {
|
||||||
public:
|
public:
|
||||||
// here forces the Impl to be of gauge fields
|
// here forces the Impl to be of gauge fields
|
||||||
// if not the compiler will complain
|
// if not the compiler will complain
|
||||||
INHERIT_GIMPL_TYPES(Impl);
|
INHERIT_GIMPL_TYPES(Impl);
|
||||||
@ -54,15 +53,14 @@ class PlaquetteLogger : public HmcObservable<typename Impl::Field> {
|
|||||||
int def_prec = std::cout.precision();
|
int def_prec = std::cout.precision();
|
||||||
|
|
||||||
std::cout << GridLogMessage
|
std::cout << GridLogMessage
|
||||||
<< std::setprecision(std::numeric_limits<Real>::digits10 + 1)
|
<< std::setprecision(std::numeric_limits<Real>::digits10 + 1)
|
||||||
<< "Plaquette: [ " << traj << " ] "<< plaq << std::endl;
|
<< "Plaquette: [ " << traj << " ] "<< plaq << std::endl;
|
||||||
|
|
||||||
std::cout.precision(def_prec);
|
std::cout.precision(def_prec);
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace QCD
|
NAMESPACE_END(Grid);
|
||||||
} // namespace Grid
|
|
||||||
|
|
||||||
#endif // HMC_PLAQUETTE_H
|
#endif // HMC_PLAQUETTE_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user