diff --git a/include/viennals/lsCalculateVisibilities.hpp b/include/viennals/lsCalculateVisibilities.hpp index da46ff65..a1872f12 100644 --- a/include/viennals/lsCalculateVisibilities.hpp +++ b/include/viennals/lsCalculateVisibilities.hpp @@ -135,9 +135,7 @@ template class CalculateVisibilities { hrleSparseIterator::DomainType> neighborIt(domain); neighborIt.goToIndices(nearestCell); - if (neighborIt.isDefined()) { - neighborValue = neighborIt.getValue(); - } + neighborValue = neighborIt.getValue(); // Update the minimum value encountered if (neighborValue < minLevelSetValue) {