From 5918ed034cf1d13a3169ca5bc3c70232acab71fb Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 21 Mar 2024 09:21:07 +0100 Subject: [PATCH] Early deprecate FEEvaluation::get_normal_vector() --- include/deal.II/matrix_free/fe_evaluation_data.h | 3 ++- tests/petsc/step-67-with-petsc-ts.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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) -- 2.39.5