diff --git a/Grid/lattice/Lattice.h b/Grid/lattice/Lattice.h index 6343db99..79572949 100644 --- a/Grid/lattice/Lattice.h +++ b/Grid/lattice/Lattice.h @@ -35,6 +35,7 @@ Author: Peter Boyle #include #include #include +#include #include #include #include @@ -46,5 +47,4 @@ Author: Peter Boyle #include #include #include -#include #include diff --git a/Grid/lattice/Lattice_crc.h b/Grid/lattice/Lattice_crc.h index 142e2349..e31d8441 100644 --- a/Grid/lattice/Lattice_crc.h +++ b/Grid/lattice/Lattice_crc.h @@ -42,13 +42,13 @@ template void DumpSliceNorm(std::string s,Lattice &f,int mu=-1 } } -template uint32_t crc(Lattice & buf) +template uint32_t crc(const Lattice & buf) { autoView( buf_v , buf, CpuRead); return ::crc32(0L,(unsigned char *)&buf_v[0],(size_t)sizeof(vobj)*buf.oSites()); } -#define CRC(U) std::cout << "FingerPrint "<<__FILE__ <<" "<< __LINE__ <<" "<< #U <<" "< inline ComplexD innerProduct(const Lattice &left,const Lattice &right) { GridBase *grid = left.Grid(); ComplexD nrm = rankInnerProduct(left,right); + // std::cerr<<"flight log " << std::hexfloat << nrm <<" "<GlobalSum(nrm); return nrm; }