]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename FPE::real_point() to FPE::quadrature_point() 16423/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 7 Jan 2024 12:33:50 +0000 (13:33 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 21 Mar 2024 09:30:25 +0000 (10:30 +0100)
doc/news/changes/incompatibilities/20240107Munch [new file with mode: 0644]
include/deal.II/matrix_free/fe_point_evaluation.h
tests/matrix_free/point_evaluation_12.cc

diff --git a/doc/news/changes/incompatibilities/20240107Munch b/doc/news/changes/incompatibilities/20240107Munch
new file mode 100644 (file)
index 0000000..81d756c
--- /dev/null
@@ -0,0 +1,5 @@
+Removed: The function FEPointEvaluation::real_point() has been
+renamed to FEPointEvaluation::quadrature_point(). The old function
+has been deprecated.
+<br>
+(Peter Munch, 2024/01/01)
index e7f142616318e8db1790774582d6154c1ea7a8da..230602f823f35596db821490b2dc561ecfcf00e4 100644 (file)
@@ -845,12 +845,21 @@ public:
   Number
   JxW(const unsigned int point_index) const;
 
+  /**
+   * Return the position in real coordinates of the given point index among
+   * the points passed to reinit().
+   *
+   * @deprecated Use the function quadrature_point() instead.
+   */
+  DEAL_II_DEPRECATED_EARLY Point<spacedim, Number>
+                           real_point(const unsigned int point_index) const;
+
   /**
    * Return the position in real coordinates of the given point index among
    * the points passed to reinit().
    */
   Point<spacedim, Number>
-  real_point(const unsigned int point_index) const;
+  quadrature_point(const unsigned int point_index) const;
 
   /**
    * Return the position in unit/reference coordinates of the given point
@@ -2245,6 +2254,17 @@ template <int n_components_, int dim, int spacedim, typename Number>
 inline Point<spacedim, Number>
 FEPointEvaluationBase<n_components_, dim, spacedim, Number>::real_point(
   const unsigned int point_index) const
+{
+  return quadrature_point(point_index);
+  ;
+}
+
+
+
+template <int n_components_, int dim, int spacedim, typename Number>
+inline Point<spacedim, Number>
+FEPointEvaluationBase<n_components_, dim, spacedim, Number>::quadrature_point(
+  const unsigned int point_index) const
 {
   AssertIndexRange(point_index, n_q_points);
   Assert(real_point_ptr != nullptr,
index 7b532ac73f9dd7d4d7a93bcf37eabd063701f602..6452d29caab3dbbec5d30c37da2cec98b79449d3 100644 (file)
@@ -13,7 +13,7 @@
 // ------------------------------------------------------------------------
 
 
-// check FEPointEvaluation::real_point(), FEPointEvaluation::unit_point(),
+// check FEPointEvaluation::quadrature_point(), FEPointEvaluation::unit_point(),
 // FEPointEvaluation::jacobian(), FEPointEvaluation::inverse_jacobian(),
 // FEPointEvaluation::get_unit_gradient().
 
@@ -97,7 +97,7 @@ test(const unsigned int degree)
         deallog << "unit point " << unit_points[i] << std::endl
                 << "unit point via evaluator: " << evaluator.unit_point(i)
                 << std::endl
-                << "real point: " << evaluator.real_point(i) << std::endl
+                << "real point: " << evaluator.quadrature_point(i) << std::endl
                 << "jacobian: " << Tensor<2, dim>(evaluator.jacobian(i))
                 << std::endl
                 << "inverse jacobian: "

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.