mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Corrected spherical mesh coordinate order
This commit is contained in:
parent
2fa461ffcb
commit
fd42b20de1
2 changed files with 5 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ class MeshSurfaceFilterTest(HashedPyAPITestHarness):
|
|||
labels = labels[:4*nd + 1] # just the first 4, 8, or 12, plus one
|
||||
expected = []
|
||||
if isinstance(mesh, openmc.SphericalMesh):
|
||||
axis_labels = ('r', 'phi', 'theta')
|
||||
axis_labels = ('r', 'theta', 'phi')
|
||||
elif isinstance(mesh, openmc.CylindricalMesh):
|
||||
axis_labels = ('r', 'phi', 'z')
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -302,9 +302,11 @@ def test_axis_labels(mesh_type):
|
|||
assert bin_names[8:] == ['z-min out', 'z-min in', 'z-max out', 'z-max in']
|
||||
if mesh_type in {'cylindrical', 'spherical'}:
|
||||
assert bin_names[:4] == ['r-min out', 'r-min in', 'r-max out', 'r-max in']
|
||||
assert bin_names[4:8] == ['phi-min out', 'phi-min in', 'phi-max out', 'phi-max in']
|
||||
if mesh_type == 'spherical':
|
||||
assert bin_names[8:] == ['theta-min out', 'theta-min in', 'theta-max out', 'theta-max in']
|
||||
assert bin_names[4:] == ['theta-min out', 'theta-min in', 'theta-max out', 'theta-max in',
|
||||
'phi-min out', 'phi-min in', 'phi-max out', 'phi-max in']
|
||||
if mesh_type == 'cylindrical':
|
||||
assert bin_names[4:8] == ['phi-min out', 'phi-min in', 'phi-max out', 'phi-max in']
|
||||
|
||||
|
||||
@pytest.mark.parametrize('mesh_type', ('regular', 'rectilinear', 'cylindrical', 'spherical'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue