dolfinx-tutorial
dolfinx-tutorial copied to clipboard
Issue on page /chapter3/component_bc.html
It says:
Next, we locate the degrees of freedom on the top boundary. However, as the boundary condition is in a sub space of our solution, we need to supply both the parent space $V$ and the sub space $V_0$ to dolfinx.locate_dofs_topological.
But only the subspace is provided:
boundary_dofs_x = locate_dofs_topological(V.sub(0), mesh.topology.dim - 1, boundary_facets)
Please clarify. I have also seen examples on the discourse where both are specified. It's confusing.
Thanks.