Merge pull request #1406 from nelsonag/mgxs_f_to_c

Mgxs code cleanup
This commit is contained in:
Paul Romano 2019-11-18 07:42:20 -06:00 committed by GitHub
commit 09fbc034d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 524 additions and 348 deletions

View file

@ -311,11 +311,11 @@ Particle::Bank sample_external_source()
// Sample source site from i-th source distribution
Particle::Bank site {model::external_sources[i].sample()};
// If running in MG, convert site % E to group
// If running in MG, convert site.E to group
if (!settings::run_CE) {
site.E = lower_bound_index(data::mg.rev_energy_bins_.begin(),
data::mg.rev_energy_bins_.end(), site.E);
site.E = data::mg.num_energy_groups_ - site.E;
site.E = data::mg.num_energy_groups_ - site.E - 1.;
}
// Set the random number generator back to the tracking stream.