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:
@ -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" );
|
||||
|
Reference in New Issue
Block a user