Skip to content

LLVM 20 Fails at Loading MGXS Data Files #3367

@nickschw2

Description

@nickschw2

@jtramm thank you for adding the random ray auto conversion functionality! I'm new to random ray and mgxs, so this is a great starting point. When I run the following on my Mac M4

import openmc
model = openmc.examples.pwr_pin_cell()
model.convert_to_multigroup()
model.convert_to_random_ray()
model.run()

I receive an error in the run() step

Reading model XML file 'model.xml' ...
 Reading cross sections HDF5 file...
 Loading cross section data...
 Loading UO2__2_4__ data...
libc++abi: terminating due to uncaught exception of type std::bad_array_new_length: bad_array_new_length
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    model.run()
    ~~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/openmc/model/model.py", line 744, in run
    openmc.run(particles, threads, geometry_debug, restart_file,
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               tracks, output, Path('.'), openmc_exec, mpi_args,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               event_based, path_input)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/openmc/executor.py", line 314, in run
    _run(args, output, cwd)
    ~~~~^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/openmc/executor.py", line 125, in _run
    raise RuntimeError(error_msg)
RuntimeError: OpenMC aborted unexpectedly.

I can successfully run without converting to multigroup or random ray, and I have set OPENMC_CROSS_SECTIONS to the correct path for endfb-viii.0-hdf5/cross_sections.xml.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions