mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Hotfix for OpenMC-OpenCG lattice conversions with y index reversal for OpenCG
This commit is contained in:
parent
d3ec579f41
commit
cc571091a3
1 changed files with 3 additions and 0 deletions
|
|
@ -922,6 +922,9 @@ def get_opencg_lattice(openmc_lattice):
|
|||
universe_id = universes[z][y][x].id
|
||||
universe_array[z][y][x] = unique_universes[universe_id]
|
||||
|
||||
# Reverse y-dimension in array to match ordering in OpenCG
|
||||
universe_array = universe_array[:, ::-1, :]
|
||||
|
||||
opencg_lattice = opencg.Lattice(lattice_id, name)
|
||||
opencg_lattice.dimension = dimension
|
||||
opencg_lattice.width = pitch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue