mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Adding origin to sphere and cyl mesh str
This commit is contained in:
parent
b22c7e8353
commit
3703fdbdd7
1 changed files with 2 additions and 0 deletions
|
|
@ -1119,6 +1119,7 @@ class CylindricalMesh(StructuredMesh):
|
|||
fmt = '{0: <16}{1}{2}\n'
|
||||
string = super().__repr__()
|
||||
string += fmt.format('\tDimensions', '=\t', self.n_dimension)
|
||||
string += fmt.format('\tOrigin', '=\t', self.origin)
|
||||
r_grid_str = str(self._r_grid) if self._r_grid is None else len(self._r_grid)
|
||||
string += fmt.format('\tN R pnts:', '=\t', r_grid_str)
|
||||
if self._r_grid is not None:
|
||||
|
|
@ -1445,6 +1446,7 @@ class SphericalMesh(StructuredMesh):
|
|||
fmt = '{0: <16}{1}{2}\n'
|
||||
string = super().__repr__()
|
||||
string += fmt.format('\tDimensions', '=\t', self.n_dimension)
|
||||
string += fmt.format('\tOrigin', '=\t', self.origin)
|
||||
r_grid_str = str(self._r_grid) if self._r_grid is None else len(self._r_grid)
|
||||
string += fmt.format('\tN R pnts:', '=\t', r_grid_str)
|
||||
if self._r_grid is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue