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

Function test_save_2d_mesh

python/test/unit/io/test_vtk.py:43–48  ·  view source on GitHub ↗
(tempdir, cell_type)

Source from the content-addressed store, hash-verified

41
42@pytest.mark.parametrize("cell_type", cell_types_2D)
43def test_save_2d_mesh(tempdir, cell_type):
44 mesh = create_unit_square(MPI.COMM_WORLD, 32, 32, cell_type=cell_type)
45 filename = Path(tempdir, f"mesh_{cell_type.name}.pvd")
46 with VTKFile(MPI.COMM_WORLD, filename, "w") as vtk:
47 vtk.write_mesh(mesh, 0.0)
48 vtk.write_mesh(mesh, 2.0)
49
50
51@pytest.mark.parametrize("cell_type", cell_types_3D)

Callers

nothing calls this directly

Calls 3

create_unit_squareFunction · 0.90
VTKFileClass · 0.90
write_meshMethod · 0.45

Tested by

no test coverage detected