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

Function mesh_factory

python/test/unit/io/test_xdmf_function.py:30–36  ·  view source on GitHub ↗
(tdim, n)

Source from the content-addressed store, hash-verified

28
29
30def mesh_factory(tdim, n):
31 if tdim == 1:
32 return create_unit_interval(MPI.COMM_WORLD, n)
33 elif tdim == 2:
34 return create_unit_square(MPI.COMM_WORLD, n, n)
35 elif tdim == 3:
36 return create_unit_cube(MPI.COMM_WORLD, n, n, n)
37
38
39# --- Function

Callers

nothing calls this directly

Calls 3

create_unit_intervalFunction · 0.90
create_unit_squareFunction · 0.90
create_unit_cubeFunction · 0.90

Tested by

no test coverage detected