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

Function test_empty_tree

python/test/unit/geometry/test_bounding_box_tree.py:152–155  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

150
151@pytest.mark.parametrize("dtype", [np.float32, np.float64])
152def test_empty_tree(dtype):
153 mesh = create_unit_interval(MPI.COMM_WORLD, 16, dtype=dtype)
154 bbtree = bb_tree(mesh, mesh.topology.dim, padding=0.0, entities=np.empty(0, dtype=dtype))
155 assert bbtree.num_bboxes == 0
156
157
158@pytest.mark.skip_in_parallel

Callers

nothing calls this directly

Calls 2

create_unit_intervalFunction · 0.90
bb_treeFunction · 0.90

Tested by

no test coverage detected