From: Buğrahan Temür Date: Wed, 15 Mar 2023 16:34:33 +0000 (+0100) Subject: Use make_array_view() for scalar inverse coefficients X-Git-Tag: v9.5.0-rc1~469^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea71f9ba48910e0fd80b4c4afb703b6474032321;p=dealii.git Use make_array_view() for scalar inverse coefficients --- diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index 320ee734b8..d7f618cf86 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -1116,22 +1116,20 @@ namespace MatrixFreeOperators VectorizedArrayType * out_array) const { if (fe_degree > -1) - internal::CellwiseInverseMassMatrixImplFlexible:: - template run( - n_actual_components, - fe_eval, - ArrayView(inverse_coefficients.data(), - inverse_coefficients.size()), - false, - in_array, - out_array); + internal::CellwiseInverseMassMatrixImplFlexible< + dim, + VectorizedArrayType>::template run(n_actual_components, + fe_eval, + make_array_view( + inverse_coefficients), + false, + in_array, + out_array); else internal::CellwiseInverseMassFactory::apply( n_actual_components, fe_eval, - ArrayView(inverse_coefficients.data(), - inverse_coefficients.size()), + make_array_view(inverse_coefficients), false, in_array, out_array);