From 5df435319dfb64eb8ac3b29bda03fac322e730fd Mon Sep 17 00:00:00 2001 From: paboyle Date: Fri, 2 Feb 2018 11:27:56 +0000 Subject: [PATCH] Use constexpr --- lib/qcd/QCD.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/qcd/QCD.h b/lib/qcd/QCD.h index a013b4e5..ce2bd07a 100644 --- a/lib/qcd/QCD.h +++ b/lib/qcd/QCD.h @@ -60,9 +60,9 @@ static constexpr int Ngp=2; // gparity index range // note: static constexpr int or constexpr will work for type deductions // with the intel compiler (up to version 17) ////////////////////////////////////////////////////////////////////////////// -static constexpr int ColourIndex = 2; -static constexpr int SpinIndex = 1; -static constexpr int LorentzIndex= 0; +#define ColourIndex (2) +#define SpinIndex (1) +#define LorentzIndex (0) // Also should make these a named enum type static constexpr int DaggerNo=0;