]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove PointValueHostory::get_point 10655/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 6 Jul 2020 02:29:29 +0000 (22:29 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 6 Jul 2020 03:17:15 +0000 (23:17 -0400)
include/deal.II/numerics/point_value_history.h
source/numerics/point_value_history.cc
tests/numerics/point_value_history_01.cc

index 30ea3b79a2ec194f43c199af3d40f74727732c2e..86379c8f3d433ad58da7689f69b45b85852df53d 100644 (file)
@@ -442,8 +442,8 @@ public:
    * Return a @p Vector with the indices of selected points flagged with a 1.
    * This method is mainly for testing and verifying that the class is working
    * correctly. By passing this vector to a DataOut object, the user can
-   * verify that the positions returned by @p get_points agree with the
-   * positions that @p DataOut interprets from the @p Vector returned. The
+   * verify that the positions returned by @p get_support_locations agree with
+   * the positions that @p DataOut interprets from the @p Vector returned. The
    * code snippet below demonstrates how this could be done:
    * @code
    * // Make a DataOut object and attach the dof_handler
@@ -474,18 +474,6 @@ public:
   void
   get_support_locations(std::vector<std::vector<Point<dim>>> &locations);
 
-  /**
-   * @deprecated
-   *
-   * This function only exists for backward compatibility as this is the
-   * interface provided by previous versions of the library. The function
-   * get_support_locations replaces it and reflects the fact that the points
-   * returned are actually the support points.
-   */
-  DEAL_II_DEPRECATED
-  void
-  get_points(std::vector<std::vector<Point<dim>>> &locations);
-
   /**
    * Stores the actual location of the points used by the data_postprocessor.
    * This can be used to compare with the points requested, for example by
@@ -505,9 +493,9 @@ public:
    * defines a state of the class and ensures this does not happen. Additional
    * points or vectors can only be added while the class is not closed, and
    * the class must be closed before datasets can be added or written to file.
-   * @p PointValueHistory::get_points and @p PointValueHistory::status do not
-   * require the class to be closed. If a method that requires a class to be
-   * open or close is called while in the wrong state a @p ExcInvalidState
+   * @p PointValueHistory::get_support_locations and @p PointValueHistory::status
+   * do not require the class to be closed. If a method that requires a class to
+   * be open or close is called while in the wrong state a @p ExcInvalidState
    * exception is thrown.
    */
   void
index bba7cf72427acc1b41fa6d6ca3edf8fc2643e930..f1d5393f94938ccd9e84a314ce48a02ce27b8fb5 100644 (file)
@@ -1246,14 +1246,6 @@ PointValueHistory<dim>::get_support_locations(
 }
 
 
-template <int dim>
-void
-PointValueHistory<dim>::get_points(
-  std::vector<std::vector<Point<dim>>> &locations)
-{
-  get_support_locations(locations);
-}
-
 
 template <int dim>
 void
index 744b3092b8284e76972a1260f6396a3cc599a9ac..e7eb708ff0b21904fe4a2045f49dd3f6a81f8cad 100644 (file)
@@ -162,7 +162,7 @@ TestPointValueHistory<dim>::run()
   test_copy.add_point(Point<2>(1, 0.2));
   test_copy.add_field_name("Solution");
   std::vector<std::vector<Point<dim>>> selected_locations;
-  test_copy.get_points(selected_locations);
+  test_copy.get_support_locations(selected_locations);
   test_copy.mark_support_locations();
   test_copy.close();
   test_copy.start_new_dataset(0.1);
@@ -198,7 +198,7 @@ TestPointValueHistory<dim>::run()
     no_dof_handler.close(); // closing still required!
 
     std::vector<std::vector<Point<dim>>> selected_locations;
-    node_monitor.get_points(selected_locations);
+    node_monitor.get_support_locations(selected_locations);
     // write output to a file
     Vector<double> node_locations = node_monitor.mark_support_locations();
     // write output to a file

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.