From: Martin Kronbichler Date: Thu, 21 Mar 2024 08:21:07 +0000 (+0100) Subject: Early deprecate FEEvaluation::get_normal_vector() X-Git-Tag: v9.6.0-rc1~466^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16768%2Fhead;p=dealii.git Early deprecate FEEvaluation::get_normal_vector() --- diff --git a/include/deal.II/matrix_free/fe_evaluation_data.h b/include/deal.II/matrix_free/fe_evaluation_data.h index 2cdec98b54..f9dcc3b8d7 100644 --- a/include/deal.II/matrix_free/fe_evaluation_data.h +++ b/include/deal.II/matrix_free/fe_evaluation_data.h @@ -231,8 +231,9 @@ public: /** * Same as `normal_vector(const unsigned int q_point)`. * - * @warning This function will be deprecated! + * @deprecated Use normal_vector() instead. */ + DEAL_II_DEPRECATED_EARLY_WITH_COMMENT("Use normal_vector() instead.") Tensor<1, dim, Number> get_normal_vector(const unsigned int q_point) const; diff --git a/tests/petsc/step-67-with-petsc-ts.cc b/tests/petsc/step-67-with-petsc-ts.cc index d6c469b5f7..23e3c7520c 100644 --- a/tests/petsc/step-67-with-petsc-ts.cc +++ b/tests/petsc/step-67-with-petsc-ts.cc @@ -1154,7 +1154,7 @@ namespace Euler_DG const auto numerical_flux = euler_numerical_flux(phi_m.get_value(q), phi_p.get_value(q), - phi_m.get_normal_vector(q)); + phi_m.normal_vector(q)); phi_m.submit_value(-numerical_flux, q); phi_p.submit_value(numerical_flux, q); } @@ -1235,7 +1235,7 @@ namespace Euler_DG for (unsigned int q = 0; q < phi.n_q_points; ++q) { const auto w_m = phi.get_value(q); - const auto normal = phi.get_normal_vector(q); + const auto normal = phi.normal_vector(q); auto rho_u_dot_n = w_m[1] * normal[0]; for (unsigned int d = 1; d < dim; ++d)