mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
initial stab at making mgxs externally usable
This commit is contained in:
parent
b60ee3b67c
commit
9c06a128d9
17 changed files with 135 additions and 134 deletions
|
|
@ -311,9 +311,9 @@ Particle::Bank sample_external_source()
|
|||
|
||||
// If running in MG, convert site % E to group
|
||||
if (!settings::run_CE) {
|
||||
site.E = lower_bound_index(data::rev_energy_bins.begin(),
|
||||
data::rev_energy_bins.end(), site.E);
|
||||
site.E = data::num_energy_groups - site.E;
|
||||
site.E = lower_bound_index(data::mgInterface.rev_energy_bins.begin(),
|
||||
data::mgInterface.rev_energy_bins.end(), site.E);
|
||||
site.E = data::mgInterface.num_energy_groups - site.E;
|
||||
}
|
||||
|
||||
// Set the random number generator back to the tracking stream.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue