mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Remove redundant check (#3812)
This commit is contained in:
parent
977ade79a1
commit
d4dc089618
1 changed files with 1 additions and 6 deletions
|
|
@ -60,13 +60,8 @@ void EnergyFilter::get_all_bins(
|
|||
const Particle& p, TallyEstimator estimator, FilterMatch& match) const
|
||||
{
|
||||
if (p.g() != C_NONE && matches_transport_groups_) {
|
||||
if (estimator == TallyEstimator::TRACKLENGTH) {
|
||||
match.bins_.push_back(data::mg.num_energy_groups_ - p.g() - 1);
|
||||
} else {
|
||||
match.bins_.push_back(data::mg.num_energy_groups_ - p.g_last() - 1);
|
||||
}
|
||||
match.bins_.push_back(data::mg.num_energy_groups_ - p.g_last() - 1);
|
||||
match.weights_.push_back(1.0);
|
||||
|
||||
} else {
|
||||
// Get the pre-collision energy of the particle.
|
||||
auto E = p.E_last();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue