mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Adjusting the level value.
This commit is contained in:
parent
e0689fda07
commit
9c62259645
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ IdData::IdData(size_t h_res, size_t v_res)
|
|||
void
|
||||
IdData::set_value(size_t y, size_t x, const Particle& p, int level) {
|
||||
// set cell data
|
||||
if (p.n_coord_ <= level) {
|
||||
if (p.n_coord_ < level) {
|
||||
data_(y, x, 0) = NOT_FOUND;
|
||||
} else {
|
||||
data_(y, x, 0) = model::cells[p.coord_[level].cell]->id_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue