mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Const safety
This commit is contained in:
parent
80471bf762
commit
f2b98d0dcc
@ -29,7 +29,7 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
|
|||||||
|
|
||||||
NAMESPACE_BEGIN(Grid);
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
template<class vobj> void DumpSliceNorm(std::string s,Lattice<vobj> &f,int mu=-1)
|
template<class vobj> void DumpSliceNorm(std::string s,const Lattice<vobj> &f,int mu=-1)
|
||||||
{
|
{
|
||||||
auto ff = localNorm2(f);
|
auto ff = localNorm2(f);
|
||||||
if ( mu==-1 ) mu = f.Grid()->Nd()-1;
|
if ( mu==-1 ) mu = f.Grid()->Nd()-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user