From 0e080a7abce823bc52bc6db3740fc8a7643c00ae Mon Sep 17 00:00:00 2001 From: paboyle Date: Sun, 14 Jan 2018 22:03:14 +0000 Subject: [PATCH] Namespace --- lib/qcd/utils/CovariantCshift.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/qcd/utils/CovariantCshift.h b/lib/qcd/utils/CovariantCshift.h index 2f7561f8..35aa1ca5 100644 --- a/lib/qcd/utils/CovariantCshift.h +++ b/lib/qcd/utils/CovariantCshift.h @@ -1,4 +1,4 @@ - /************************************************************************************* +/************************************************************************************* Grid physics library, www.github.com/paboyle/Grid @@ -24,13 +24,13 @@ Author: paboyle 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. See the full license in the file "LICENSE" in the top level distribution directory - *************************************************************************************/ - /* END LEGAL */ +*************************************************************************************/ +/* END LEGAL */ #ifndef QCD_UTILS_COVARIANT_CSHIFT_H #define QCD_UTILS_COVARIANT_CSHIFT_H -namespace Grid { -namespace QCD { +NAMESPACE_BEGIN(Grid); + //////////////////////////////////////////////////////////////////////// // Low performance implementation of CovariantCshift API //////////////////////////////////////////////////////////////////////// @@ -39,8 +39,8 @@ namespace QCD { namespace PeriodicBC { template Lattice CovShiftForward(const Lattice &Link, - int mu, - const Lattice &field) + int mu, + const Lattice &field) { return Link*Cshift(field,mu,1);// moves towards negative mu } @@ -84,8 +84,8 @@ namespace ConjugateBC { // -- // -------> template Lattice CovShiftForward(const Lattice &Link, - int mu, - const Lattice &field) + int mu, + const Lattice &field) { GridBase * grid = Link._grid; @@ -122,9 +122,8 @@ namespace ConjugateBC { return Cshift(tmp,mu,-1);// moves towards positive mu } - } -}} +NAMESPACE_END(Grid); #endif