From 2e28c119281ceb778aaf47c7c6c71712fa7425ff Mon Sep 17 00:00:00 2001 From: Sam Kaplan Date: Fri, 6 Aug 2021 12:36:40 -0400 Subject: [PATCH] Only check size of index set for isomorphism Since the vector of indices is passed as a pointer, the generated kernels are identical regardless of the index values being accessed. So when checking for isomorphism, we shouldn't compare the values. --- src/index_notation/index_notation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index_notation/index_notation.cpp b/src/index_notation/index_notation.cpp index 1e462e47a..f1f2af195 100644 --- a/src/index_notation/index_notation.cpp +++ b/src/index_notation/index_notation.cpp @@ -198,7 +198,7 @@ struct Isomorphic : public IndexNotationVisitorStrict { return; } for (auto aset = anode->indexSetModes.begin(), bset = bnode->indexSetModes.begin(); aset != anode->indexSetModes.end(); ++aset, ++bset) { - if (aset->first != bset->first || *aset->second.set != *bset->second.set) { + if (aset->first != bset->first || aset->second.set->size() != bset->second.set->size()) { eq = false; return; }