Skip to content

Commit

Permalink
Fix array size
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdean committed Dec 7, 2023
1 parent 4cc5dc3 commit c0b72e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/dolfinx/fem/DofMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ fem::DofMap build_collapsed_dofmap(const DofMap& dofmap_view,
ss << "new_to_old_conn = " << new_to_old_conn << "\n";

// TODO Simplify
std::vector<std::int32_t> non_blocked_to_blocked(indices_conn.size(), -1);
std::vector<std::int32_t> non_blocked_to_blocked(
indices_conn.back() + 1, -1);
for (std::size_t i = 0; i < indices_conn.size(); ++i)
{
non_blocked_to_blocked[indices_conn[i]] = dofs_view[i];
Expand Down

0 comments on commit c0b72e7

Please sign in to comment.