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

Function test_complex_method

python/test/unit/fem/test_constant.py:71–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def test_complex_method():
72 mesh = create_unit_cube(MPI.COMM_WORLD, 2, 2, 2)
73 a = 1.0 + 1.0j
74 c0 = Constant(mesh, a)
75 assert a == complex(c0)

Callers

nothing calls this directly

Calls 2

create_unit_cubeFunction · 0.90
ConstantClass · 0.90

Tested by

no test coverage detected