Correction to plot level and index check.

This commit is contained in:
Patrick Shriwise 2020-09-03 22:30:46 -05:00
parent 53108e3459
commit 301f15139f
2 changed files with 2 additions and 2 deletions

View file

@ -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.at(p.coord_.at(level).cell)->id_;