1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-17 21:27:07 +01:00

Revert "projection on Sp2n algebra, to be used instead of Ta"

This reverts commit ba7f9d7b70.
This commit is contained in:
Alessandro Lupo
2023-03-17 11:36:58 +00:00
parent cdf3f6ef6e
commit cbc053c3db
4 changed files with 56 additions and 212 deletions

View File

@@ -414,6 +414,13 @@ static void OmegaInvariance(ColourMatrix &in) {
Omega = Zero();
const int nsp=ncolour/2;
std::cout << GridLogMessage << "I am a ColourMatrix" << std::endl;
// for (int i = 0; i < ncolour; i++) wrong?!
//{
// Omega()()(i, 2*ncolour-1-i) = 1.;
// Omega()()(2*ncolour-1-i, i) = -1;
// }
for (int i = 0; i < nsp; i++) {
Omega()()(i, nsp + i) = 1.;
Omega()()(nsp + i, i) = -1;
@@ -447,6 +454,8 @@ static void OmegaInvariance(GaugeField &in) {
Omega = Zero();
identity = 1.;
std::cout << GridLogMessage << "I am a GaugeField " << std::endl;
U = PeekIndex<LorentzIndex>(in, 1);
OmegaInvariance(U);
@@ -464,6 +473,8 @@ static void OmegaInvariance(LatticeColourMatrixD &in) {
Omega = Zero();
identity = 1.;
std::cout << GridLogMessage << "I am a LatticeColourMatrix " << std::endl;
for (int i = 0; i < nsp; i++) {
Omega()()(i, nsp + i) = 1.;
Omega()()(nsp + i, i) = -1;
@@ -485,21 +496,3 @@ static void OmegaInvariance(LatticeColourMatrixD &in) {
}
}
template <ONLY_IF_Sp>
static void Omega(LatticeColourMatrixD &in) {
const int nsp=ncolour/2;
LatticeColourMatrixD OmegaLatt(in.Grid());
LatticeColourMatrixD identity(in.Grid());
ColourMatrix Omega;
OmegaLatt = Zero();
Omega = Zero();
identity = 1.;
for (int i = 0; i < nsp; i++) {
Omega()()(i, nsp + i) = 1.;
Omega()()(nsp + i, i) = -1;
}
OmegaLatt = OmegaLatt + (identity * Omega);
in = OmegaLatt;
}