Skip to content

Commit

Permalink
Remove another ArrayView
Browse files Browse the repository at this point in the history
  • Loading branch information
kronbichler committed May 5, 2023
1 parent 8cfb2f2 commit f59c98d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
4 changes: 1 addition & 3 deletions include/deal.II/matrix_free/fe_point_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,7 @@ FEPointEvaluation<n_components, dim, spacedim, Number>::integrate_fast(
internal::integrate_add_tensor_product_value_and_gradient_shapes<
dim,
VectorizedArrayType,
vectorized_value_type>(make_array_view(shapes,
qb * n_shapes,
n_shapes),
vectorized_value_type>(shapes.data() + qb * n_shapes,
n_shapes,
value,
gradient,
Expand Down
21 changes: 10 additions & 11 deletions include/deal.II/matrix_free/tensor_product_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -3477,12 +3477,11 @@ namespace internal
DEAL_II_ALWAYS_INLINE
#endif
void
do_apply_test_functions_xy(
AlignedVector<Number2> & values,
const ArrayView<dealii::ndarray<Number, 2, dim>> &shapes,
const std::array<Number2, 3> & test_grads_value,
const int n_shapes_runtime,
int & i)
do_apply_test_functions_xy(AlignedVector<Number2> & values,
const dealii::ndarray<Number, 2, dim> *shapes,
const std::array<Number2, 3> &test_grads_value,
const int n_shapes_runtime,
int & i)
{
if (length > 0)
{
Expand Down Expand Up @@ -3544,11 +3543,11 @@ namespace internal
template <int dim, typename Number, typename Number2>
inline void
integrate_add_tensor_product_value_and_gradient_shapes(
const ArrayView<dealii::ndarray<Number, 2, dim>> &shapes,
const int n_shapes,
const Number2 & value,
const Tensor<1, dim, Number2> & gradient,
AlignedVector<Number2> & values)
const dealii::ndarray<Number, 2, dim> *shapes,
const int n_shapes,
const Number2 & value,
const Tensor<1, dim, Number2> & gradient,
AlignedVector<Number2> & values)
{
static_assert(dim >= 1 && dim <= 3, "Only dim=1,2,3 implemented");

Expand Down

0 comments on commit f59c98d

Please sign in to comment.