From 16add87c05a2a228daabb4f99a3c09c0defe2b46 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Fri, 7 Oct 2022 07:18:52 +0000 Subject: [PATCH] now reads back from xml --- openmc/mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index 3efa1e1149..abc46c70b4 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -1196,7 +1196,7 @@ class CylindricalMesh(StructuredMesh): mesh.r_grid = [float(x) for x in get_text(elem, "r_grid").split()] mesh.phi_grid = [float(x) for x in get_text(elem, "phi_grid").split()] mesh.z_grid = [float(x) for x in get_text(elem, "z_grid").split()] - # TODO: add read centre + mesh.centre = [float(x) for x in get_text(elem, "centre").split()] return mesh @@ -1443,8 +1443,8 @@ class SphericalMesh(StructuredMesh): mesh.r_grid = [float(x) for x in get_text(elem, "r_grid").split()] mesh.theta_grid = [float(x) for x in get_text(elem, "theta_grid").split()] mesh.phi_grid = [float(x) for x in get_text(elem, "phi_grid").split()] + mesh.centre = [float(x) for x in get_text(elem, "centre").split()] - # TODO: add read centre return mesh @property