Skip to content

Commit

Permalink
Scale direction vector by grid delta
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Nov 28, 2024
1 parent c447ffe commit 49384f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/viennals/lsCalculateVisibilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ template <class NumericType, int D> class CalculateVisibilities {
//****************************

// Invert the vector
auto dir = Normalize(Inv(direction));
auto dir = Normalize(Inv(direction)) * domiain.getGrid().getGridDelta();

auto numDefinedPoints = domain.getNumberOfPoints();
std::vector<NumericType> visibilities(numDefinedPoints);
Expand Down

0 comments on commit 49384f5

Please sign in to comment.