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

Function test_float_method

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

Source from the content-addressed store, hash-verified

62
63
64def test_float_method():
65 mesh = create_unit_cube(MPI.COMM_WORLD, 2, 2, 2)
66 a = 1.0
67 c0 = Constant(mesh, a)
68 assert a == float(c0) # /NOSONAR
69
70
71def test_complex_method():

Callers

nothing calls this directly

Calls 2

create_unit_cubeFunction · 0.90
ConstantClass · 0.90

Tested by

no test coverage detected