Skip to content

Commit 43dafba

Browse files
authored
Include std::int64_t for distribute_entity_data (#3651)
* New version * Remove includes * Remove unused includes * Add in std::int64_t in Python interface * Move implementation to header file * Remove cpp from target sources * Remove Anonymous namespace * Simplify md namespace * Modify copyright notice to include Garth as the code was historically in the cpp file * Fix includes
1 parent bedc41c commit 43dafba

File tree

7 files changed

+489
-521
lines changed

7 files changed

+489
-521
lines changed

cpp/dolfinx/io/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set(HEADERS_io
1010
${CMAKE_CURRENT_SOURCE_DIR}/xdmf_function.h
1111
${CMAKE_CURRENT_SOURCE_DIR}/xdmf_mesh.h
1212
${CMAKE_CURRENT_SOURCE_DIR}/xdmf_utils.h
13+
${CMAKE_CURRENT_SOURCE_DIR}/utils.h
1314
PARENT_SCOPE
1415
)
1516

cpp/dolfinx/io/XDMFFile.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <dolfinx/common/log.h>
1414
#include <dolfinx/fem/Function.h>
1515
#include <dolfinx/graph/AdjacencyList.h>
16+
#include <dolfinx/io/utils.h>
1617
#include <dolfinx/mesh/Geometry.h>
1718
#include <dolfinx/mesh/Mesh.h>
1819
#include <dolfinx/mesh/MeshTags.h>
@@ -379,7 +380,7 @@ XDMFFile::read_meshtags(const mesh::Mesh<double>& mesh, std::string name,
379380
md::mdspan<const std::int64_t, md::dextents<std::size_t, 2>> entities_span(
380381
entities1.data(), eshape);
381382
std::pair<std::vector<std::int32_t>, std::vector<std::int32_t>>
382-
entities_values = xdmf_utils::distribute_entity_data<std::int32_t>(
383+
entities_values = io::distribute_entity_data<std::int32_t>(
383384
*mesh.topology(), mesh.geometry().input_global_indices(),
384385
mesh.geometry().index_map()->size_global(),
385386
mesh.geometry().cmap().create_dof_layout(), mesh.geometry().dofmap(),

0 commit comments

Comments
 (0)