From 2c9ae96c1d94613d697fb02cad7c1967d32d1503 Mon Sep 17 00:00:00 2001 From: aprilnovak Date: Wed, 15 Sep 2021 10:27:10 -0500 Subject: [PATCH] Add length multiplier to vtk writing. Refs #1872 --- openmc/mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index f542ac5fe1..bf7954fd41 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -784,7 +784,7 @@ class UnstructuredMesh(MeshBase): for centroid in self.centroids: # create a point for each centroid - point_id = points.InsertNextPoint(centroid) + point_id = points.InsertNextPoint(centroid * self.length_multiplier) # create a cell of type "Vertex" for each point cell_id = vertices.InsertNextCell(cell_dim, (point_id,))