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

NamedTensor writes to tag NamedTensor by default (not filename) - so still usable in case user renames file.

Also tweaked tensor index name checking (which is used to ensure tensor is correct type)
This commit is contained in:
Michael Marshall
2019-05-01 18:11:37 +01:00
parent 8dc0587621
commit a3fe57f430
2 changed files with 44 additions and 30 deletions

View File

@ -166,8 +166,7 @@ void TDistilVectors<FImpl>::setup(void)
auto &perambulator = envGet(PerambTensor, PerambulatorName);
// We expect the perambulator to have been created with these indices
for(int i = 0; i < PerambTensor::NumIndices; i++ )
assert( PerambIndexNames[i] == perambulator.IndexNames[i] && "PerambTensor indices bad" );
assert( perambulator.ValidateIndexNames( PerambIndexNames.size(), &PerambIndexNames[0] ) && "Perambulator index names bad" );
const int Nt{ env().getDim(Tdir) };
assert( Nt == static_cast<int>( perambulator.tensor.dimension(0) ) && "PerambTensor time dimensionality bad" );