1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

fixed issue with HADRONS_ERROR, no idea why this works

This commit is contained in:
ferben 2019-11-15 13:46:47 +00:00
parent 7f06c40107
commit 2d6f4e0c09
2 changed files with 4 additions and 0 deletions

View File

@ -116,7 +116,9 @@ void TDistilVectors<FImpl>::setup(void)
// We expect the perambulator to have been created with these indices // We expect the perambulator to have been created with these indices
auto &perambulator = envGet(PerambTensor, par().perambulator); auto &perambulator = envGet(PerambTensor, par().perambulator);
if (!perambulator.ValidateIndexNames()) if (!perambulator.ValidateIndexNames())
{
HADRONS_ERROR(Range,"Perambulator index names bad"); HADRONS_ERROR(Range,"Perambulator index names bad");
}
const DistilParameters &dp{envGet(DistilParameters, par().DistilParams)}; const DistilParameters &dp{envGet(DistilParameters, par().DistilParams)};
const int Nt{env().getDim(Tdir)}; const int Nt{env().getDim(Tdir)};

View File

@ -78,7 +78,9 @@ public:
IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames} IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames}
{ {
if(sizeof...(otherDimensions) + 1 != NumIndices_) if(sizeof...(otherDimensions) + 1 != NumIndices_)
{
HADRONS_ERROR(Argument, "NamedTensor: dimensions != tensor rank"); HADRONS_ERROR(Argument, "NamedTensor: dimensions != tensor rank");
}
} }
// Do my index names match the default for my type? // Do my index names match the default for my type?