mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Merge pull request #2110 from RemDelaporteMathurin/fix_write_to_vtk
Fixed write_data_to_vtk dimension mismatch
This commit is contained in:
commit
ee2ceda926
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