]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Early deprecate FEEvaluation::get_normal_vector() 16768/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 21 Mar 2024 08:21:07 +0000 (09:21 +0100)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 21 Mar 2024 08:23:02 +0000 (09:23 +0100)
include/deal.II/matrix_free/fe_evaluation_data.h
tests/petsc/step-67-with-petsc-ts.cc

index 2cdec98b54c270a74eec35083134280afba24d26..f9dcc3b8d7dac1d40705e50f4e23120ad526e6aa 100644 (file)
@@ -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;
 
index d6c469b5f770c8b1bc21b08e42340bd1ed77696b..23e3c7520c50510e7167af1bb15f0bfef0f54187 100644 (file)
@@ -1154,7 +1154,7 @@ namespace Euler_DG
             const auto numerical_flux =
               euler_numerical_flux<dim>(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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.