Skip to content

Commit

Permalink
AccessValues::_values data member should be private
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jan 9, 2024
1 parent b6080f3 commit 4efb1ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/details/ArborX_AccessTraits.hpp
Expand Up @@ -194,10 +194,12 @@ class AccessValues
{
private:
using Access = AccessTraits<Values, Tag>;

public:
Values _values;

public:
explicit AccessValues(Values values)
: _values(std::move(values))
{}
using memory_space = typename Access::memory_space;
using value_type = std::decay_t<
Kokkos::detected_t<AccessTraitsGetArchetypeExpression, Access, Values>>;
Expand Down
2 changes: 1 addition & 1 deletion src/interpolation/ArborX_InterpMovingLeastSquares.hpp
Expand Up @@ -159,7 +159,7 @@ class MovingLeastSquares
// Compute the moving least squares coefficients
_coeffs = Details::movingLeastSquaresCoefficients<CRBFunc, PolynomialDegree,
FloatingCalculationType>(
space, source_view, target_access._values);
space, source_view, target_access);
}

template <typename ExecutionSpace, typename SourceValues,
Expand Down

0 comments on commit 4efb1ef

Please sign in to comment.