mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 03:55:38 -04:00
Incorporate cell instance levels into plotting. Return C_NONE if it is not a distributed cell.
This commit is contained in:
parent
4e3350ebcf
commit
39c52dcf94
2 changed files with 6 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ IdData::set_value(size_t y, size_t x, const Particle& p, int level) {
|
|||
data_(y, x, 1) = NOT_FOUND;
|
||||
} else {
|
||||
data_(y, x, 0) = model::cells.at(p.coord(level).cell)->id_;
|
||||
data_(y, x, 1) = p.cell_instance();
|
||||
data_(y, x, 1) = level == p.n_coord() - 1 ? p.cell_instance() : cell_instance_at_level(p, level);
|
||||
}
|
||||
|
||||
// set material data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue