Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/random_ray/random_ray_simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ void validate_random_ray_inputs()
}
}

// Silently set tally estimators to collision to ensure that source
// regions correctly map to tally bins. This is required as source regions
// only store a single position to use for determining which tally they map
// to, so r() == r_last() and bins_crossed(...) may fail to match due to the
// zero segment length. This has no impact on the results as random ray
// simulations are MOC-based; tallies all use tracklength estimators
// regardless of the value of 'estimator_'.
for (auto& tally : model::tallies) {
tally->estimator_ = TallyEstimator::COLLISION;
}

// Validate filter types
for (auto f : tally->filters()) {
auto& filter = *model::tally_filters[f];
Expand Down
Loading