From d5edd100a5d6bf423a6316aae438848412114dc2 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 14 May 2021 10:48:14 -0400 Subject: [PATCH] Useful debug fingerprints --- Grid/lattice/Lattice_crc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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);