From 0dc294a8d60d07c1b2428edea16cae7c191b636a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 5 Jul 2020 22:29:29 -0400 Subject: [PATCH] Remove PointValueHostory::get_point --- .../deal.II/numerics/point_value_history.h | 22 +++++-------------- source/numerics/point_value_history.cc | 8 ------- tests/numerics/point_value_history_01.cc | 4 ++-- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/include/deal.II/numerics/point_value_history.h b/include/deal.II/numerics/point_value_history.h index 30ea3b79a2..86379c8f3d 100644 --- a/include/deal.II/numerics/point_value_history.h +++ b/include/deal.II/numerics/point_value_history.h @@ -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>> &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>> &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 diff --git a/source/numerics/point_value_history.cc b/source/numerics/point_value_history.cc index bba7cf7242..f1d5393f94 100644 --- a/source/numerics/point_value_history.cc +++ b/source/numerics/point_value_history.cc @@ -1246,14 +1246,6 @@ PointValueHistory::get_support_locations( } -template -void -PointValueHistory::get_points( - std::vector>> &locations) -{ - get_support_locations(locations); -} - template void diff --git a/tests/numerics/point_value_history_01.cc b/tests/numerics/point_value_history_01.cc index 744b3092b8..e7eb708ff0 100644 --- a/tests/numerics/point_value_history_01.cc +++ b/tests/numerics/point_value_history_01.cc @@ -162,7 +162,7 @@ TestPointValueHistory::run() test_copy.add_point(Point<2>(1, 0.2)); test_copy.add_field_name("Solution"); std::vector>> 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::run() no_dof_handler.close(); // closing still required! std::vector>> selected_locations; - node_monitor.get_points(selected_locations); + node_monitor.get_support_locations(selected_locations); // write output to a file Vector node_locations = node_monitor.mark_support_locations(); // write output to a file -- 2.39.5