Skip to content

Commit

Permalink
Clear incoming idx vector to local_variable_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad committed May 22, 2024
1 parent e7bc93d commit dd44b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base/dof_map.C
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,8 @@ void DofMap::local_variable_indices(std::vector<dof_id_type> & idx,
const MeshBase & mesh,
unsigned int var_num) const
{
idx.clear();

// Count dofs in the *exact* order that distribute_dofs numbered
// them, so that we can assume ascending indices and use push_back
// instead of find+insert.
Expand Down

0 comments on commit dd44b92

Please sign in to comment.