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

Function test_create_box_prism

python/test/unit/mesh/test_mesh.py:311–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309
310
311def test_create_box_prism():
312 mesh = create_box(
313 MPI.COMM_WORLD,
314 [[0.0, 0.0, 0.0], [1.0, 1.0, 1.0]],
315 [2, 3, 4],
316 CellType.prism,
317 np.float64,
318 GhostMode.none,
319 )
320 assert mesh.topology.index_map(0).size_global == 60
321 assert mesh.topology.index_map(3).size_global == 48
322
323
324@pytest.mark.parametrize("gdim", [1, 2, 3])

Callers

nothing calls this directly

Calls 2

create_boxFunction · 0.90
index_mapMethod · 0.45

Tested by

no test coverage detected