mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
[skip ci] use .num_mesh_cells
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
5603e328b8
commit
9867a4340a
1 changed files with 1 additions and 1 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue