Rectangle mesh embedded in gdim-dimensional space has correct tdim and gdim.
(gdim, cell_type)
| 335 | @pytest.mark.parametrize("cell_type", [CellType.triangle, CellType.quadrilateral]) |
| 336 | @pytest.mark.parametrize("gdim", [2, 3]) |
| 337 | def test_create_rectangle_gdim(gdim, cell_type): |
| 338 | """Rectangle mesh embedded in gdim-dimensional space has correct tdim and gdim.""" |
| 339 | mesh = create_rectangle(MPI.COMM_WORLD, [[0.0, 0.0], [1.0, 1.0]], [4, 4], cell_type, gdim=gdim) |
| 340 | assert mesh.topology.dim == 2 |
| 341 | assert mesh.geometry.dim == gdim |
| 342 | domain = mesh.ufl_domain() |
| 343 | assert domain is not None |
| 344 | assert domain.ufl_coordinate_element().reference_value_shape == (gdim,) |
| 345 | |
| 346 | |
| 347 | @pytest.mark.skip_in_parallel |
nothing calls this directly
no test coverage detected