diff --git a/src/mesh.cpp b/src/mesh.cpp index 1c05db0..d4eff81 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -332,18 +332,13 @@ create_spoke_mesh(MPI_Comm comm, std::size_t target_dofs, } // New Mesh - std::vector offsets(ncells + 1, 0); - for (std::size_t i = 0; i < offsets.size() - 1; ++i) - offsets[i + 1] = offsets[i] + 4; - dolfinx::fem::CoordinateElement element( dolfinx::mesh::CellType::tetrahedron, 1); auto mesh = std::make_shared>( - dolfinx::mesh::create_mesh(comm, - dolfinx::graph::AdjacencyList( - std::move(topo), std::move(offsets)), - {element}, x, {x.size() / 3, 3}, + dolfinx::mesh::create_mesh(comm, + topo, + element, x, {x.size() / 3, 3}, dolfinx::mesh::GhostMode::none)); mesh->topology_mutable()->create_entities(1);