diff --git a/openmc/mesh.py b/openmc/mesh.py index d5a460baa..1fe5429d0 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -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))