Solution skill
Fix 'No fission sites banked' and run-mode/source mistakes in OpenMC
Complete solution
Shows how to fix 'No fission sites banked' and run-mode/source mistakes in OpenMC. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "ERROR: No fission sites banked on MPI rank 0": set the run mode explicitly; the default 'eigenvalue' is not what you want when there is no fission chain to iterate: `python settings = openmc.Settings() settings.run\_mode = 'fixed source' settings.batches = 20 settings.particles = 10000 source = openmc.IndependentSource() source.space = openmc.stats.Point((0, 0, 10)) source.angle = openmc.stats.Isotropic() source.energy = openmc.stats.Discrete([4.2e6], [1]) settings.source = source Notes that bite people: - Valid run_mode values are 'eigenvalue' (default), 'fixed source', 'plot', 'volum
ERROR: No fission sites banked on MPI rank 0
Abort(-1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0When to use
You are seeing this: Eigenvalue runs ignore settings.source` for the fission bank, so a defined source plus this error is near-certain case A. Use this skill when you run into "Fix 'No fission sites banked' and run-mode/source mistakes in OpenMC".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Fix "No fission sites banked" and run-mode/source mistakes in OpenMC
Use this when OpenMC aborts with ERROR: No fission sites banked on MPI rank 0 (often followed by an MPI_Abort), or when a fixed-source shielding / detector problem produces no usable result. The error has two distinct causes, wrong run mode vs genuinely missing fissile material, and the fix is different for each. Classify before changing anything.
1. Read the error and classify
The full signature looks like this:
ERROR: No fission sites banked on MPI rank 0
Abort(-1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0In the Python API the same failure surfaces as RuntimeError: No fission sites banked on MPI rank 0. Now ask one question: does your model contain fissile material that should sustain a chain reaction?
Case A, it does not. You defined a source (
settings.source) and non-fissile materials (graphite stack, water shield, detector geometry), i.e. a fixed-source shielding or flux problem, butrun_modedefaults to'eigenvalue'. OpenMC tried to bank fission sites from a first generation that can never produce them. Fix: the run mode (step 2). This is the most common cause on the forum.Case B, it should. You intended an eigenvalue calculation on fuel. Then the material composition is wrong: a typo in a nuclide name, an element added where a nuclide was needed, or a natural element with no fissile isotope at the density you set. Fix: the material (step 3).
Do not "fix" case A by adding fake fissile material, and do not "fix" case B by switching to fixed source, each hides the real mistake.
2. Case A: switch genuinely fixed-source problems to fixed source
Set the run mode explicitly; the default 'eigenvalue' is not what you want when there is no fission chain to iterate:
settings = openmc.Settings()
settings.run_mode = 'fixed source'
settings.batches = 20
settings.particles = 10000
source = openmc.IndependentSource()
source.space = openmc.stats.Point((0, 0, 10))
source.angle = openmc.stats.Isotropic()
source.energy = openmc.stats.Discrete([4.2e6], [1])
settings.source = sourceNotes that bite people:
Valid
run_modevalues are'eigenvalue'(default),'fixed source','plot','volume', and'particle restart', the space in'fixed source'is required;'fixed_source'is not accepted.In fixed-source mode there is no fission source to converge, so all batches are active, do not set
settings.inactive; it has no meaning here.Fission is still simulated by default in fixed-source runs (fission neutrons are created and multiply). If you want a pure non-multiplying transport solve, set
settings.create_fission_neutrons = False.A common tell of case A:
settings.sourceis set and the run dies on the first batch. Eigenvalue runs ignoresettings.sourcefor the fission bank, so a defined source plus this error is near-certain case A.
3. Case B: verify the material actually contains fissile nuclides
Check what is really in the model before assuming the solver is at fault:
for mat in materials:
print(mat.name, mat.get_nuclides())Frequent culprits:
Typo or wrong naming. Nuclide names are case-sensitive strings like
'U235'/'Pu239'. Adding element'U'gives natural uranium (mostly U238); adding'U235'as an element is not the same as adding the nuclide. Confirm the fissile nuclide appears inget_nuclides().Zero-density or unset density. A material whose density was never set (or set to 0) contributes no atoms; fission sites cannot be banked in it.
Source or cell mismatch (rarer). If the source samples points outside all fissile cells, e.g. an
IndependentSourcewithconstraints={'domains': [cell], 'rejection_strategy': 'kill'}pointed at the wrong cell, fewer particles than requested are simulated and the fission bank can come up empty. Check that the sampled positions land inside fissile material.
4. Related: tally scores that silently give nothing
A sibling symptom of the same confusion: the run completes but a tally is empty or zero. Two checks before blaming physics:
In case-A-style problems,
tally.scores = ['flux']needs a fixed-source run; an eigenvalue run of a non-multiplying model will not even get that far (see step 1).Verify the tally was actually exported: the Python snippet
tallies = openmc.Tallies([tally]); tallies.export_to_xml()must run, andtally.scores(plural) is the attribute, assigningtally.score(singular) silently does nothing in older API usage seen on the forum.
5. Checklist for the failing command
- Capture the exact error:
No fission sites banked on MPI rank 0. Classify: no fissile material + a defined source → case A (run mode); intended eigenvalue on fuel → case B (material composition).
Case A:
settings.run_mode = 'fixed source', keep all batches active, do not setinactive.Case B: print
mat.get_nuclides()for every material; fix the nuclide name, element-vs-nuclide choice, or density.Never paper over the error by adding fissile material to a shielding problem or by flipping an eigenvalue problem to fixed source.
Evidence
Built from two OpenMC Discourse threads where the error was diagnosed (graphite-stack flux problem fixed by settings.runmode='fixed source'; SIGSEGV/abort thread with the same root cause), the openmc-dev/openmc PR adding createfissionneutrons, and the OpenMC user's guide documentation of Settings runmode values and source constraints. The draft was written from these sources' error strings, API names, and documented behavior.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_dzaDVGCwW4eM3gKaQiv8Kw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Fix 'No fission sites banked' and run-mode/source mistakes in OpenMC <span>— Vectle</span></a>