1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Fixed files giving zero force computation on GPU, issue #8

This commit is contained in:
Niccolo Forzano 2023-01-18 18:04:47 +00:00
parent 88bdd4344b
commit b10e1b7bc8
3 changed files with 3 additions and 6 deletions

View File

@ -133,8 +133,7 @@ public:
for (int a = 0; a < Dimension; a++) {
generator(a, iTa);
LatticeComplex tmp = real(trace(iTa * in)) * coefficient;
pokeColour(h_out, tmp, a);
pokeColour(h_out, real(trace(iTa * in)) * coefficient, a);
}
}

View File

@ -224,8 +224,7 @@ public:
// 2/(Nc +/- 2) for the normalization of the trace in the two index rep
for (int a = 0; a < ncolour * ncolour - 1; a++) {
generator(a, i2indTa);
auto tmp = real(trace(i2indTa * in)) * coefficient;
pokeColour(h_out, tmp, a);
pokeColour(h_out, real(trace(i2indTa * in)) * coefficient, a);
}
}

View File

@ -273,8 +273,7 @@ public:
// 2/(Nc +/- 2) for the normalization of the trace in the two index rep
for (int a = 0; a < NumGenerators; a++) {
generator(a, i2indTa);
auto tmp = real(trace(i2indTa * in)) * coefficient;
pokeColour(h_out, tmp, a);
pokeColour(h_out, real(trace(i2indTa * in)) * coefficient, a);
}
}