mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
now reads back from xml
This commit is contained in:
parent
5787616ae4
commit
16add87c05
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue