Skip to content

Commit

Permalink
Ensure RegularMesh repr shows value for width of the mesh (#3100)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Romano <[email protected]>
  • Loading branch information
pitkajuh and paulromano authored Aug 14, 2024
1 parent 3ef54ec commit ae245e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmc/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ def __repr__(self):
string += '{0: <16}{1}{2}\n'.format('\tDimensions', '=\t', self.n_dimension)
string += '{0: <16}{1}{2}\n'.format('\tVoxels', '=\t', self._dimension)
string += '{0: <16}{1}{2}\n'.format('\tLower left', '=\t', self._lower_left)
string += '{0: <16}{1}{2}\n'.format('\tUpper Right', '=\t', self._upper_right)
string += '{0: <16}{1}{2}\n'.format('\tWidth', '=\t', self._width)
string += '{0: <16}{1}{2}\n'.format('\tUpper Right', '=\t', self.upper_right)
string += '{0: <16}{1}{2}\n'.format('\tWidth', '=\t', self.width)
return string

@classmethod
Expand Down

0 comments on commit ae245e0

Please sign in to comment.