After merging the current crop of PRs that fix compilation for all code gallery programs (and replace deprecated function calls), there remain a few places where programs use deprecated matrix-free functions with which I am not familiar. @kronbichler @peterrum -- would you be willing to look at these? The warnings I get are as follows:
[ 50%] Building CXX object CMakeFiles/NS_TRBDF2_DG.dir/navier_stokes_TRBDF2_DG.cc.o
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc: In instantiation of ‘void NS_TRBDF2::NavierStokesProjectionOperator<dim, fe_degree_p, fe_degree_v, n_q_points_1d_p, n_q_points_1d_v, Vec>::assemble_diagonal_cell_term_velocity(const dealii::MatrixFree<dim, typename Vec::value_type>&, Vec&, const unsigned int&, const std::pair<unsigned int, unsigned int>&) const [with int dim = 2; int fe_degree_p = 1; int fe_degree_v = 2; int n_q_points_1d_p = 2; int n_q_points_1d_v = 3; Vec = dealii::LinearAlgebra::distributed::Vector<double>; typename Vec::value_type = double]’:
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:2019:17: required from ‘NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)> [with auto:84 = dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >; auto:85 = dealii::LinearAlgebra::distributed::Vector<double>; auto:86 = unsigned int; auto:87 = std::pair<unsigned int, unsigned int>]’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/type_traits:2466:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>&; _Args = {const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&}]’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/type_traits:2477:55: required from ‘struct std::__result_of_impl<false, false, NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>&, const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&>’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/bits/std_function.h:334:9: recursively required by substitution of ‘template<class _Result, class _Ret> struct std::__is_invocable_impl<_Result, _Ret, true, std::__void_t<typename _CTp::type> > [with _Result = std::__invoke_result<NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>&, const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&>; _Ret = void]’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/bits/std_function.h:334:9: required from ‘struct std::function<void(const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&)>::_Callable<NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>, std::__invoke_result<NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>&, const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&> >’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/bits/std_function.h:344:8: required by substitution of ‘template<class _Res, class ... _ArgTypes> template<class _Cond, class _Tp> using _Requires = typename std::enable_if<_Cond::value, _Tp>::type [with _Cond = std::function<void(const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&)>::_Callable<NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>, std::__invoke_result<NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>&, const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&> >; _Tp = void; _Res = void; _ArgTypes = {const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Host>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&}]’
/scratch/local/gcc-11.2.0/include/c++/11.2.0/bits/std_function.h:413:9: required by substitution of ‘template<class _Functor, class, class> std::function<void(const dealii::MatrixFree<2, double, dealii::VectorizedArray<double, 2> >&, dealii::LinearAlgebra::distributed::Vector<double>&, const unsigned int&, const std::pair<unsigned int, unsigned int>&)>::function(_Functor) [with _Functor = NS_TRBDF2::NavierStokesProjectionOperator<2, 1, 2, 2, 3, dealii::LinearAlgebra::distributed::Vector<double> >::compute_diagonal()::<lambda(const auto:84&, auto:85&, const auto:86&, const auto:87&)>; <template-parameter-1-2> = void; <template-parameter-1-3> = void]’
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:2016:7: required from ‘void NS_TRBDF2::NavierStokesProjectionOperator<dim, fe_degree_p, fe_degree_v, n_q_points_1d_p, n_q_points_1d_v, Vec>::compute_diagonal() [with int dim = 2; int fe_degree_p = 1; int fe_degree_v = 2; int n_q_points_1d_p = 2; int n_q_points_1d_v = 3; Vec = dealii::LinearAlgebra::distributed::Vector<double>]’
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:2450:42: required from ‘void NS_TRBDF2::NavierStokesProjection<dim>::diffusion_step() [with int dim = 2]’
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:2940:7: required from ‘void NS_TRBDF2::NavierStokesProjection<dim>::run(bool, unsigned int) [with int dim = 2]’
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:3035:13: required from here
/home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:1439:37: warning: ‘void dealii::FEEvaluation<dim, fe_degree, n_q_points_1d, n_components_, Number, VectorizedArrayType>::gather_evaluate(const VectorType&, bool, bool, bool) [with VectorType = dealii::LinearAlgebra::distributed::Vector<double>; int dim = 2; int fe_degree = 2; int n_q_points_1d = 3; int n_components_ = 2; Number = double; VectorizedArrayType = dealii::VectorizedArray<double, 2>]’ is deprecated [-Wdeprecated-declarations]
1439 | phi_old_extr.gather_evaluate(u_extr, true, false);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /raid/bangerth/p/deal.II/1/install/include/deal.II/matrix_free/operators.h:30,
from /home/fac/g/bangerth/p/deal.II/1/dealii/code-gallery/NavierStokes_TRBDF2_DG/navier_stokes_TRBDF2_DG.cc:47:
/raid/bangerth/p/deal.II/1/install/include/deal.II/matrix_free/fe_evaluation.h:7883:1: note: declared here
7883 | FEEvaluation<
| ^~~~~~~~~~~~~
7884 | dim,
| ~~~~
7885 | fe_degree,
| ~~~~~~~~~~
7886 | n_q_points_1d,
| ~~~~~~~~~~~~~~
7887 | n_components_,
| ~~~~~~~~~~~~~~
7888 | Number,
| ~~~~~~~
7889 | VectorizedArrayType>::gather_evaluate(const VectorType &input_vector,
| ~~~~~~~~~~~~~~~~~~~~
This goes on for several more pages, but github only allows me to attach up to 64kB of text :-)