mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-04 19:25:56 +01:00
be more precise on typing
This commit is contained in:
parent
2c2112e152
commit
fa6117f136
@ -242,7 +242,7 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
|
|
||||||
{ // Peek-ology and Poke-ology, with a little app-ology
|
{ // Peek-ology and Poke-ology, with a little app-ology
|
||||||
TComplex c;
|
Complex c;
|
||||||
ColourMatrix c_m;
|
ColourMatrix c_m;
|
||||||
SpinMatrix s_m;
|
SpinMatrix s_m;
|
||||||
SpinColourMatrix sc_m;
|
SpinColourMatrix sc_m;
|
||||||
@ -299,7 +299,7 @@ int main (int argc, char ** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Bar = zero;
|
Bar = zero;
|
||||||
Bar = where(lex<10,Foo,Bar);
|
Bar = where(lex<Integer(10),Foo,Bar);
|
||||||
{
|
{
|
||||||
std::vector<int> coor(4);
|
std::vector<int> coor(4);
|
||||||
for(coor[3]=0;coor[3]<latt_size[3]/mpi_layout[3];coor[3]++){
|
for(coor[3]=0;coor[3]<latt_size[3]/mpi_layout[3];coor[3]++){
|
||||||
@ -467,7 +467,8 @@ int main (int argc, char ** argv)
|
|||||||
mdiff = shifted1-shifted2;
|
mdiff = shifted1-shifted2;
|
||||||
amdiff=adj(mdiff);
|
amdiff=adj(mdiff);
|
||||||
ColourMatrix prod = amdiff*mdiff;
|
ColourMatrix prod = amdiff*mdiff;
|
||||||
Real Ttr=real(trace(prod));
|
Complex trprod = trace(prod);
|
||||||
|
Real Ttr=real(trprod);
|
||||||
double nn=Ttr;
|
double nn=Ttr;
|
||||||
if ( nn > 0 )
|
if ( nn > 0 )
|
||||||
cout<<"Shift real trace fail "<<coor[0]<<coor[1]<<coor[2]<<coor[3] <<endl;
|
cout<<"Shift real trace fail "<<coor[0]<<coor[1]<<coor[2]<<coor[3] <<endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user