From df1a45b65407f0dc67e286600aac58d1b8744682 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Mon, 21 Nov 2022 09:46:13 -0500 Subject: [PATCH] origin from_hdf5 --- openmc/mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/mesh.py b/openmc/mesh.py index 0eba6871b..64217fa77 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -1145,6 +1145,7 @@ class CylindricalMesh(StructuredMesh): mesh.r_grid = group['r_grid'][()] mesh.phi_grid = group['phi_grid'][()] mesh.z_grid = group['z_grid'][()] + mesh.origin = group['origin'][()] return mesh @@ -1469,6 +1470,7 @@ class SphericalMesh(StructuredMesh): mesh.r_grid = group['r_grid'][()] mesh.theta_grid = group['theta_grid'][()] mesh.phi_grid = group['phi_grid'][()] + mesh.origin = group['origin'][()] return mesh