mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Use operator() for indexing internal indices
This commit is contained in:
parent
21b269d0f9
commit
7458c6174b
@ -191,7 +191,7 @@ there to the lattice colour-vector field `cv`, as defined above.
|
|||||||
indexToCoords(idx,r);
|
indexToCoords(idx,r);
|
||||||
ColourVector cVec;
|
ColourVector cVec;
|
||||||
for(int col=0; col<Nc; col++)
|
for(int col=0; col<Nc; col++)
|
||||||
cVec._internal._internal._internal[col] =
|
cVec()()(col) =
|
||||||
Complex(src[idx].c[col].real, src[idx].c[col].imag);
|
Complex(src[idx].c[col].real, src[idx].c[col].imag);
|
||||||
|
|
||||||
pokeLocalSite(cVec, cv, r);
|
pokeLocalSite(cVec, cv, r);
|
||||||
@ -224,7 +224,7 @@ Grid 5D fermion field `cv5`.
|
|||||||
r5[0] = j;
|
r5[0] = j;
|
||||||
ColourVector cVec;
|
ColourVector cVec;
|
||||||
for(int col=0; col<Nc; col++){
|
for(int col=0; col<Nc; col++){
|
||||||
cVec._internal._internal._internal[col] =
|
cVec()()(col) =
|
||||||
Complex(src[j][idx].c[col].real, src[j][idx].c[col].imag);
|
Complex(src[j][idx].c[col].real, src[j][idx].c[col].imag);
|
||||||
}
|
}
|
||||||
pokeLocalSite(cVec, *(out->cv), r5);
|
pokeLocalSite(cVec, *(out->cv), r5);
|
||||||
|
Loading…
Reference in New Issue
Block a user