mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Use unique_ptr consistently for global vectors
This commit is contained in:
parent
4877ffcccd
commit
38e39c4486
18 changed files with 78 additions and 95 deletions
|
|
@ -172,7 +172,7 @@ Bank SourceDistribution::sample() const
|
|||
if (space_box) {
|
||||
if (space_box->only_fissionable()) {
|
||||
// Determine material
|
||||
auto c = model::cells[cell_index];
|
||||
const auto& c = model::cells[cell_index];
|
||||
auto mat_index = c->material_.size() == 1
|
||||
? c->material_[0] : c->material_[instance];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue