MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / marked_ridges

Function marked_ridges

python/test/unit/fem/test_assembler.py:2023–2024  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2021 x = ufl.SpatialCoordinate(msh)
2022
2023 def marked_ridges(x):
2024 return np.isclose(x[0], 1) & np.isclose(x[1], 0.5)
2025
2026 exterior_ridges = dolfinx.mesh.locate_entities_boundary(
2027 msh, msh.topology.dim - 2, marked_ridges

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected