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

Function modified_grad

python/test/unit/fem/test_interpolation.py:1107–1109  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1105 return values
1106
1107 def modified_grad(x):
1108 grad = grad_ref_func(x)
1109 return -0.2 * grad[1], 0.1 * grad[0]
1110
1111 tdim = mesh.topology.dim
1112 cells = locate_entities(mesh, tdim, left_locator)

Callers

nothing calls this directly

Calls 1

grad_ref_funcFunction · 0.85

Tested by

no test coverage detected