mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Few minor fixes for #454. Mesh ID is no longer written for statepoint.
This commit is contained in:
parent
f3f6753820
commit
3d2fe2a0ef
4 changed files with 5 additions and 11 deletions
|
|
@ -265,8 +265,7 @@ class StatePoint(object):
|
|||
|
||||
# Iterate over all Meshes
|
||||
for mesh_key in mesh_keys:
|
||||
# Read the user-specified Mesh ID and type
|
||||
mesh_id = self._f['{0}{1}/id'.format(base, mesh_key)].value
|
||||
# Read the mesh type
|
||||
mesh_type = self._f['{0}{1}/type'.format(base, mesh_key)].value.decode()
|
||||
|
||||
# Read the mesh dimensions, lower-left coordinates,
|
||||
|
|
@ -277,7 +276,7 @@ class StatePoint(object):
|
|||
width = self._f['{0}{1}/width'.format(base, mesh_key)].value
|
||||
|
||||
# Create the Mesh and assign properties to it
|
||||
mesh = openmc.Mesh(mesh_id)
|
||||
mesh = openmc.Mesh(mesh_key)
|
||||
mesh.dimension = dimension
|
||||
mesh.width = width
|
||||
mesh.lower_left = lower_left
|
||||
|
|
@ -285,7 +284,7 @@ class StatePoint(object):
|
|||
mesh.type = mesh_type
|
||||
|
||||
# Add mesh to the global dictionary of all Meshes
|
||||
self._meshes[mesh_id] = mesh
|
||||
self._meshes[mesh_key] = mesh
|
||||
|
||||
self._meshes_read = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue