mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-13 04:37:05 +01:00
Fixing issue #11: consistent use of ncolour and nsp
This commit is contained in:
@ -21,7 +21,7 @@ int main (int argc, char **argv)
|
||||
|
||||
double vol = Umu.Grid()->gSites();
|
||||
|
||||
const int nsp = Nc / 2;
|
||||
const int nsp = Sp<Nc>::nsp;
|
||||
identity = 1.;
|
||||
Cidentity = 1.;
|
||||
|
||||
@ -34,8 +34,8 @@ int main (int argc, char **argv)
|
||||
std::cout << GridLogMessage << "-------" << std::endl;
|
||||
std::cout << GridLogMessage << "Checking Cold Configuration " << std::endl;
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
Sp<nsp>::ColdConfiguration(pRNG,Umu);
|
||||
Sp<nsp>::OmegaInvariance(Umu);
|
||||
Sp<Nc>::ColdConfiguration(pRNG,Umu);
|
||||
Sp<Nc>::OmegaInvariance(Umu);
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
|
||||
Umu = Umu - identity;
|
||||
@ -47,8 +47,8 @@ int main (int argc, char **argv)
|
||||
std::cout << GridLogMessage << "-------" << std::endl;
|
||||
std::cout << GridLogMessage << "Checking Hot Configuration" << std::endl;
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
Sp<nsp>::HotConfiguration(pRNG,Umu);
|
||||
Sp<nsp>::OmegaInvariance(Umu);
|
||||
Sp<Nc>::HotConfiguration(pRNG,Umu);
|
||||
Sp<Nc>::OmegaInvariance(Umu);
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
U = PeekIndex<LorentzIndex>(Umu,1);
|
||||
std::cout << GridLogMessage << "Checking unitarity " << std::endl;
|
||||
@ -62,8 +62,8 @@ int main (int argc, char **argv)
|
||||
std::cout << GridLogMessage << "-------" << std::endl;
|
||||
std::cout << GridLogMessage << "Checking Tepid Configuration" << std::endl;
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
Sp<nsp>::TepidConfiguration(pRNG,Umu);
|
||||
Sp<nsp>::OmegaInvariance(Umu);
|
||||
Sp<Nc>::TepidConfiguration(pRNG,Umu);
|
||||
Sp<Nc>::OmegaInvariance(Umu);
|
||||
std::cout << GridLogMessage << std::endl;
|
||||
U = PeekIndex<LorentzIndex>(Umu,1);
|
||||
std::cout << GridLogMessage << "Checking unitarity " << std::endl;
|
||||
@ -85,7 +85,7 @@ int main (int argc, char **argv)
|
||||
Complex i(0., 1.);
|
||||
|
||||
|
||||
Sp<nsp>::HotConfiguration(pRNG,Umu);
|
||||
Sp<Nc>::HotConfiguration(pRNG,Umu);
|
||||
U = PeekIndex<LorentzIndex>(Umu,0);
|
||||
for (int c1 = 0; c1 < nsp; c1++) //check on W
|
||||
{
|
||||
@ -123,7 +123,7 @@ int main (int argc, char **argv)
|
||||
|
||||
std::cout << GridLogMessage << "Hot start ok " << std::endl;
|
||||
|
||||
Sp<nsp>::HotConfiguration(pRNG,Umu);
|
||||
Sp<Nc>::HotConfiguration(pRNG,Umu);
|
||||
U = PeekIndex<LorentzIndex>(Umu,0);
|
||||
for (int c1 = 0; c1 < nsp; c1++) //check on W
|
||||
{
|
||||
|
@ -20,7 +20,8 @@ int main (int argc, char **argv)
|
||||
LatticeColourMatrixD aux(&Grid);
|
||||
LatticeColourMatrixD identity(&Grid);
|
||||
|
||||
const int nsp = Nc / 2;
|
||||
//const int nsp = Nc / 2;
|
||||
const int nsp = Sp<Nc>::nsp;
|
||||
|
||||
identity = 1.0;
|
||||
RealD epsilon = 0.01;
|
||||
@ -47,7 +48,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
std::cout << GridLogMessage << "This matrix should not leave Omega invariant, expect a warning" << std::endl;
|
||||
}
|
||||
Sp<nsp>::OmegaInvariance(U);
|
||||
Sp<Nc>::OmegaInvariance(U);
|
||||
std::cout <<GridLogMessage << std::endl;
|
||||
|
||||
U = U + epsilon*identity;
|
||||
@ -78,7 +79,7 @@ int main (int argc, char **argv)
|
||||
|
||||
// actual sp2n check
|
||||
std::cout << GridLogMessage << "Checking invariance after projection "<< std::endl;
|
||||
Sp<nsp>::OmegaInvariance(U);
|
||||
Sp<Nc>::OmegaInvariance(U);
|
||||
|
||||
// checks on elements
|
||||
|
||||
|
Reference in New Issue
Block a user