Skip to content

Commit

Permalink
commiting to show some diff
Browse files Browse the repository at this point in the history
mtao committed Dec 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7389dbf commit 4e8fdfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wmtk/operations/Operation.cpp
Original file line number Diff line number Diff line change
@@ -146,10 +146,14 @@ void Operation::apply_attribute_transfer(const std::vector<simplex::Simplex>& di
simplex::IdSimplexCollection all(m_mesh);
all.reserve(100);

assert(m_mesh.is_connectivity_valid());

for (const auto& s : direct_mods) {
if (!s.tuple().is_null()) {
assert(m_mesh.is_valid(s));
for (const simplex::IdSimplex& ss : simplex::closed_star_iterable(m_mesh, s)) {
// trying to get a simplex and this crashes
m_mesh.get_simplex(ss);
all.add(ss);
}
}

0 comments on commit 4e8fdfa

Please sign in to comment.