From 56d47bdecbf1737a3357c80549611708f76d2e60 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 29 Jun 2023 10:03:53 -0400 Subject: [PATCH] Remove deprecated CellDataTransferBuffer --- .../incompatibilities/20230629DanielArndt | 3 + include/deal.II/grid/grid_tools.h | 100 ------------------ 2 files changed, 3 insertions(+), 100 deletions(-) create mode 100644 doc/news/changes/incompatibilities/20230629DanielArndt diff --git a/doc/news/changes/incompatibilities/20230629DanielArndt b/doc/news/changes/incompatibilities/20230629DanielArndt new file mode 100644 index 0000000000..d99da77cd8 --- /dev/null +++ b/doc/news/changes/incompatibilities/20230629DanielArndt @@ -0,0 +1,3 @@ +Removed: The deprecated GridTools::CellDataTransferBuffer class has been removed. +
+(Daniel Arndt, 2023/06/29) diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index 1f6dfbaec9..dcf52d9ccf 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -3615,106 +3615,6 @@ namespace GridTools compute_vertices_with_ghost_neighbors( const Triangulation &tria); - /** - * A structure that allows the transfer of cell data of type @p T from one processor - * to another. It corresponds to a packed buffer that stores a vector of - * CellId and a vector of type @p T. - * - * This class facilitates the transfer by providing the save/load functions - * that are able to pack up the vector of CellId's and the associated - * data of type @p T into a stream. - * - * Type @p T is assumed to be serializable by boost::serialization (for - * example unsigned int or std::vector@). - * - * @deprecated The implementation in deal.II has been rewritten, making this class - * obsolete for use within deal.II. Use your own data structures instead. - */ - template - struct DEAL_II_DEPRECATED CellDataTransferBuffer - { - /** - * A vector to store IDs of cells to be transferred. - */ - std::vector cell_ids; - - /** - * A vector of cell data to be transferred. - */ - std::vector data; - - /** - * Write the data of this object to a stream for the purpose of - * serialization using the [BOOST serialization - * library](https://www.boost.org/doc/libs/1_74_0/libs/serialization/doc/index.html) - * - * @pre The user is responsible to keep the size of @p data - * equal to the size as @p cell_ids . - */ - template - void - save(Archive &ar, const unsigned int) const - { - // Implement the code inline as some compilers do otherwise complain - // about the use of a deprecated interface. - Assert(cell_ids.size() == data.size(), - ExcDimensionMismatch(cell_ids.size(), data.size())); - // archive the cellids in an efficient binary format - const std::size_t n_cells = cell_ids.size(); - ar & n_cells; - for (const auto &id : cell_ids) - { - CellId::binary_type binary_cell_id = id.template to_binary(); - ar & binary_cell_id; - } - - ar &data; - } - - /** - * Read the data of this object from a stream for the purpose of - * serialization using the [BOOST serialization - * library](https://www.boost.org/doc/libs/1_74_0/libs/serialization/doc/index.html). - * Throw away the previous content. - */ - template - void - load(Archive &ar, const unsigned int) - { - // Implement the code inline as some compilers do otherwise complain - // about the use of a deprecated interface. - std::size_t n_cells; - ar & n_cells; - cell_ids.clear(); - cell_ids.reserve(n_cells); - for (unsigned int c = 0; c < n_cells; ++c) - { - CellId::binary_type value; - ar & value; - cell_ids.emplace_back(value); - } - ar &data; - } - - -#ifdef DOXYGEN - /** - * Read or write the data of this object to or from a stream for the - * purpose of serialization using the [BOOST serialization - * library](https://www.boost.org/doc/libs/1_74_0/libs/serialization/doc/index.html). - */ - template - void - serialize(Archive &archive, const unsigned int version); -#else - // This macro defines the serialize() method that is compatible with - // the templated save() and load() method that have been implemented. - BOOST_SERIALIZATION_SPLIT_MEMBER() -#endif - }; - - - /** * An implementation of the marching-square (2d) and marching-cube algorithm * for creating data structures (vectors of Point and CellData) to -- 2.39.5