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

Function test_component

python/test/unit/fem/test_function_space.py:83–89  ·  view source on GitHub ↗
(V, W, Q)

Source from the content-addressed store, hash-verified

81
82
83def test_component(V, W, Q):
84 assert not W.component()
85 assert not V.component()
86 assert W.sub(0).component()[0] == 0
87 assert W.sub(1).component()[0] == 1
88 assert Q.sub(0).component()[0] == 0
89 assert Q.sub(1).component()[0] == 1
90
91
92def test_equality(V, V2, W, W2):

Callers

nothing calls this directly

Calls 2

componentMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected