Skip to content

Commit aaad975

Browse files
authored
Fix thread performance issue (#4076)
1 parent 375eed0 commit aaad975

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/dolfinx/mesh/topologycomputation.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <dolfinx/common/log.h>
1717
#include <dolfinx/common/sort.h>
1818
#include <dolfinx/graph/AdjacencyList.h>
19+
#include <functional>
1920
#include <memory>
2021
#include <mpi.h>
2122
#include <numeric>
@@ -631,8 +632,8 @@ compute_entities_by_key_matching(
631632
threads[i] = std::jthread(
632633
build_entity_list, std::span(entity_list.data() + offset, count),
633634
std::span(entity_list_sorted.data() + offset, count), c0, c1 - c0,
634-
cells, e_vertices, entity_type, cell_type_entities[k],
635-
std::cref(vertex_index_map));
635+
std::cref(cells), std::cref(e_vertices), entity_type,
636+
std::cref(cell_type_entities[k]), std::cref(vertex_index_map));
636637
}
637638
}
638639

0 commit comments

Comments
 (0)