From 049b4a4631931196348970466ebf7ec27a1da1a6 Mon Sep 17 00:00:00 2001 From: paboyle Date: Sun, 14 Jan 2018 22:15:55 +0000 Subject: [PATCH] Namespace --- lib/qcd/representations/fundamental.h | 37 +++++++++++---------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/lib/qcd/representations/fundamental.h b/lib/qcd/representations/fundamental.h index db52d893..44d8e7af 100644 --- a/lib/qcd/representations/fundamental.h +++ b/lib/qcd/representations/fundamental.h @@ -1,23 +1,21 @@ /* * Policy classes for the HMC * Author: Guido Cossu -*/ + */ #ifndef FUNDAMENTAL_H #define FUNDAMENTAL_H - -namespace Grid { -namespace QCD { +NAMESPACE_BEGIN(Grid); /* -* This is an helper class for the HMC -* Empty since HMC updates already the fundamental representation -*/ + * This is an helper class for the HMC + * Empty since HMC updates already the fundamental representation + */ template class FundamentalRep { - public: +public: static const int Dimension = ncolour; // typdef to be used by the Representations class in HMC to get the @@ -34,25 +32,20 @@ class FundamentalRep { }; - template - class EmptyRep { - public: - typedef Field LatticeField; +template +class EmptyRep { +public: + typedef Field LatticeField; - explicit EmptyRep(GridBase* grid) {} //do nothing - void update_representation(const LatticeField& Uin) {} // do nothing - LatticeField RtoFundamentalProject(const LatticeField& in, Real scale = 1.0) const{}// do nothing - }; + explicit EmptyRep(GridBase* grid) {} //do nothing + void update_representation(const LatticeField& Uin) {} // do nothing + LatticeField RtoFundamentalProject(const LatticeField& in, Real scale = 1.0) const{}// do nothing +}; typedef FundamentalRep FundamentalRepresentation; - -} -} - - - +NAMESPACE_END(Grid); #endif