Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Jan 18, 2025
1 parent 30806e1 commit e5c9dfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/dolfinx/fem/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ ElementDofLayout create_element_dof_layout(const fem::FiniteElement<T>& element,
std::shared_ptr<const fem::FiniteElement<T>> sub_e
= element.sub_elements()[bs > 1 ? 0 : i];

// In a mixed element DOFs are ordered element by element, so the
// In a mixed element DOFs are ordered element-by-element, so the
// offset to the next sub-element is sub_e->space_dimension().
// Blocked elements use xxyyzz ordering, so the offset to the next
// sub-element is 1
// sub-element is 1.

std::vector<int> parent_map_sub(sub_e->space_dimension(), offset);
// std::vector<int> parent_map_sub(sub_e->space_dimension(),
Expand Down
2 changes: 1 addition & 1 deletion python/demo/demo_mixed-topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
]
elements_cpp = [_cpp.fem.FiniteElement_float64(e._e, None, True) for e in elements]
# NOTE: Both dofmaps have the same IndexMap, but different cell_dofs
dofmaps = _cpp.fem.create_dofmaps(mesh.comm, mesh.topology, elements_cpp)
dofmaps = _cpp.fem.create_dofmaps(mesh.topology, elements_cpp)

# Create C++ function space
V_cpp = _cpp.fem.FunctionSpace_float64(mesh, elements_cpp, dofmaps)
Expand Down

0 comments on commit e5c9dfc

Please sign in to comment.