Skip to content

Commit

Permalink
fix for sorting cavity's edges
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Jan 16, 2025
1 parent 5ec5e13 commit 22afc6c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/rxmesh/cavity_manager_impl2.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,16 @@ CavityManager2<blockThreads, cop>::sort_cavities_edge_loop()
if constexpr (cop == CavityOp::E) {
// we pick one end vertex of the edge to be the starting point
// of the cavity boundary loop
const uint16_t cavity_edge_src_vertex = m_s_cavity_creator[c];

// const uint16_t cavity_edge_src_vertex =
// m_s_cavity_creator[c];
uint16_t cavity_edge_src_vertex;
for (int e = 0; e < m_s_num_edges[0]; ++e) {
if (m_s_cavity_id_e[e] == c) {
cavity_edge_src_vertex = m_s_ev[2 * e];
break;
}
}

for (int e = start; e < end; ++e) {
uint32_t edge = m_s_cavity_boundary_edges[e];
Expand Down

0 comments on commit 22afc6c

Please sign in to comment.