[skip ci] use .num_mesh_cells

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Rémi Delaporte-Mathurin 2022-06-29 14:19:56 +02:00 committed by GitHub
parent 5603e328b8
commit 9867a4340a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ def test_write_data_to_vtk(mesh, tmpdir):
# BUILD
filename = tmpdir / "out.vtk"
data = np.random.random(mesh.dimension[0]*mesh.dimension[1]*mesh.dimension[2])
data = np.random.random(mesh.num_mesh_cells)
# RUN
mesh.write_data_to_vtk(filename=filename, datasets={"label1": data, "label2": data})