mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-02 14:08:05 +01:00
Use constexpr
This commit is contained in:
1 parent
0da2d3e222
commit
5df435319d
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user