mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -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
|
|
@ -666,7 +666,7 @@ void position_rgb(Particle p, Plot pl, RGBColor& rgb, int& id)
|
|||
} else {
|
||||
if (PlotColorBy::mats == pl.color_by_) {
|
||||
// Assign color based on material
|
||||
Cell* c = model::cells[p.coord[j].cell];
|
||||
const auto& c = model::cells[p.coord[j].cell];
|
||||
if (c->type_ == FILL_UNIVERSE) {
|
||||
// If we stopped on a middle universe level, treat as if not found
|
||||
rgb = pl.not_found_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue