Fix external source indexing bug for distrib temps

This commit is contained in:
Sterling Harper 2019-02-14 16:15:58 -05:00
parent f5b1a39d4a
commit 60f679d51e

View file

@ -173,7 +173,8 @@ Bank SourceDistribution::sample() const
if (space_box->only_fissionable()) {
// Determine material
auto c = model::cells[cell_index - 1];
int32_t mat_index = c->material_[instance];
auto mat_index = c->material_.size() == 1
? c->material_[0] : c->material_[instance];
if (mat_index == MATERIAL_VOID) {
found = false;