mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Fixed number of dimensions in vtk file
This commit is contained in:
parent
6549067c43
commit
0fe895e195
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ class StructuredMesh(MeshBase):
|
|||
|
||||
vtk_grid = vtk.vtkStructuredGrid()
|
||||
|
||||
vtk_grid.SetDimensions(*self.dimension)
|
||||
vtk_grid.SetDimensions(*[dim + 1 for dim in self.dimension])
|
||||
|
||||
vtkPts = vtk.vtkPoints()
|
||||
vtkPts.SetData(nps.numpy_to_vtk(points, deep=True))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue