1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-13 04:37:05 +01:00

Added Scalar_ length and Scalar_Unit_Size to Perambulator file for validation

This commit is contained in:
2019-02-05 09:07:05 +00:00
parent 7f5354630a
commit 5b0870bb19
4 changed files with 50 additions and 37 deletions

View File

@ -254,7 +254,7 @@ bool bNumber( int &ri, const char * & pstr, bool bGobbleWhiteSpace = true )
#ifdef DEBUG
typedef Grid::Hadrons::MDistil::NamedTensor<Complex,Real,3> MyTensor;
typedef Grid::Hadrons::MDistil::NamedTensor<Complex,3,sizeof(Real)> MyTensor;
void DebugShowTensor(MyTensor &x, const char * n)
{
@ -305,7 +305,7 @@ bool DebugEigenTest()
// Test initialisation of an array of strings
for( auto a : as )
std::cout << a << std::endl;
Grid::Hadrons::MDistil::Perambulator<Complex,Real,3> p{as,2,7,2};
Grid::Hadrons::MDistil::Perambulator<Complex,3,sizeof(Real)> p{as,2,7,2};
DebugShowTensor(p, "p");
std::cout << "p.IndexNames follow" << std::endl;
for( auto a : p.IndexNames )