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

Function test_expression_comm

python/test/unit/fem/test_expression.py:393–399  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

391 ],
392)
393def test_expression_comm(dtype):
394 xtype = dtype(0).real.dtype
395 mesh = create_unit_square(MPI.COMM_WORLD, 4, 4, dtype=xtype)
396 v = Constant(mesh, dtype(1))
397 u = Function(functionspace(mesh, ("Lagrange", 1)), dtype=dtype)
398 Expression(v, u.function_space.element.interpolation_points, comm=MPI.COMM_WORLD)
399 Expression(v, u.function_space.element.interpolation_points, comm=MPI.COMM_SELF)
400
401
402def compute_exterior_facet_entities(mesh, facets):

Callers

nothing calls this directly

Calls 5

create_unit_squareFunction · 0.90
ConstantClass · 0.90
FunctionClass · 0.90
functionspaceFunction · 0.90
ExpressionClass · 0.90

Tested by

no test coverage detected