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:
parent
7f06c40107
commit
2d6f4e0c09
@ -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)};
|
||||||
|
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user