How can I run delete in single-core mode? (On the jupyter page)

Dear OpenMC users and experts,
I wanna to run the openmc.deplete in single-core mode, but I didn’t find a way in the user’guide.
such as openmc.run(threads=1), are there someway like this in the integrator.integrate() in the jupyter page?
if not, how should I do in other way?
Thank you so much, best wishes~(and forgive my poor English)

Hi Jiang jiang,
if you want to limit the number of thread being used by openmc, you can set the OMP_NUM_THREADS environment variable same way as when you set the default nuclear data lib OPENMC_CROSS_SECTIONS.
here some documentation mentioning this env variable

1 Like

Or you can also add this in your simulation.py:

import os

os.environ['OMP_NUM_THREADS'] = '1'
1 Like