diff --git a/Grid/lattice/Lattice_crc.h b/Grid/lattice/Lattice_crc.h index a283ea8b..142e2349 100644 --- a/Grid/lattice/Lattice_crc.h +++ b/Grid/lattice/Lattice_crc.h @@ -29,6 +29,19 @@ Author: Peter Boyle NAMESPACE_BEGIN(Grid); +template void DumpSliceNorm(std::string s,Lattice &f,int mu=-1) +{ + auto ff = localNorm2(f); + if ( mu==-1 ) mu = f.Grid()->Nd()-1; + typedef typename vobj::tensor_reduced normtype; + typedef typename normtype::scalar_object scalar; + std::vector sff; + sliceSum(ff,sff,mu); + for(int t=0;t uint32_t crc(Lattice & buf) { autoView( buf_v , buf, CpuRead);