fix boundary condition on lookuptable

This commit is contained in:
djaidjai committed 2024-05-16 10:35:53 +02:00
1 parent 089016c987
commit 4e18d957d1
1 file changed
+1 -1
@@ -126,7 +126,7 @@ void LGlyphLayer::updateData(int t) {
for (vtkIdType n=0; n < this->points->GetNumberOfPoints(); n++) { for (vtkIdType n=0; n < this->points->GetNumberOfPoints(); n++) {
int beachedFor = this->particlesBeached->GetValue(n); int beachedFor = this->particlesBeached->GetValue(n);
// first check: only update non-beached particles. // first check: only update non-beached particles.
if (beachedFor < this->beachedAtNumberOfTimes) { if (beachedFor < this->beachedAtNumberOfTimes-1) {
this->points->GetPoint(n, point); this->points->GetPoint(n, point);
// second check: only update points within our grid's boundary. // second check: only update points within our grid's boundary.
if (point[0] <= this->uvGrid->lonMin() or point[0] >= this->uvGrid->lonMax() or point[1] <= this->uvGrid->latMin() or point[1] >= this->uvGrid->latMax()) { if (point[0] <= this->uvGrid->lonMin() or point[0] >= this->uvGrid->lonMax() or point[1] <= this->uvGrid->latMin() or point[1] >= this->uvGrid->latMax()) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.