mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Use constexpr
This commit is contained in:
parent
0da2d3e222
commit
5df435319d
@ -60,9 +60,9 @@ static constexpr int Ngp=2; // gparity index range
|
|||||||
// note: static constexpr int or constexpr will work for type deductions
|
// note: static constexpr int or constexpr will work for type deductions
|
||||||
// with the intel compiler (up to version 17)
|
// with the intel compiler (up to version 17)
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
static constexpr int ColourIndex = 2;
|
#define ColourIndex (2)
|
||||||
static constexpr int SpinIndex = 1;
|
#define SpinIndex (1)
|
||||||
static constexpr int LorentzIndex= 0;
|
#define LorentzIndex (0)
|
||||||
|
|
||||||
// Also should make these a named enum type
|
// Also should make these a named enum type
|
||||||
static constexpr int DaggerNo=0;
|
static constexpr int DaggerNo=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user