1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00
This commit is contained in:
Azusa Yamaguchi 2015-06-14 00:51:37 +01:00
parent 31ab4c4c35
commit 5484607ef2

View File

@ -100,7 +100,8 @@ int main (int argc, char ** argv)
double nrm = abs(scm-cm()()()); double nrm = abs(scm-cm()()());
std::vector<int> peer(4); std::vector<int> peer(4);
int index=real(cm); Complex ctmp = cm;
Integer index=real(ctmp);
Fine.CoorFromIndex(peer,index,latt_size); Fine.CoorFromIndex(peer,index,latt_size);
if (nrm > 0){ if (nrm > 0){
@ -138,7 +139,8 @@ int main (int argc, char ** argv)
nrm = abs(scm-cm()()()); nrm = abs(scm-cm()()());
std::vector<int> peer(4); std::vector<int> peer(4);
int index=real(cm); Complex ctmp=cm;
Integer index=real(ctmp);
Fine.CoorFromIndex(peer,index,latt_size); Fine.CoorFromIndex(peer,index,latt_size);
if (nrm > 0){ if (nrm > 0){