From 57345e79a16f813dc1d8645825427db98469e915 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 1 Jul 2023 12:23:06 -0400 Subject: [PATCH] Remove MappingQCache initialize --- include/deal.II/fe/mapping_q_cache.h | 13 ------------- source/fe/mapping_q_cache.cc | 11 ----------- tests/mappings/mapping_q_cache_01.cc | 2 +- tests/mappings/mapping_q_cache_02.cc | 2 +- tests/mappings/mapping_q_cache_03.cc | 4 ++-- 5 files changed, 4 insertions(+), 28 deletions(-) diff --git a/include/deal.II/fe/mapping_q_cache.h b/include/deal.II/fe/mapping_q_cache.h index d0bb44e675..9bbf900832 100644 --- a/include/deal.II/fe/mapping_q_cache.h +++ b/include/deal.II/fe/mapping_q_cache.h @@ -95,19 +95,6 @@ public: initialize(const Mapping & mapping, const Triangulation &triangulation); - /** - * Initialize the data cache by computing the mapping support points for all - * cells (on all levels) of the given triangulation. - * - * @note The cache is invalidated upon the signal - * Triangulation::Signals::any_change of the underlying triangulation. - * - * @deprecated Use initialize() version above instead. - */ - DEAL_II_DEPRECATED void - initialize(const Triangulation &triangulation, - const MappingQ & mapping); - /** * Initialize the data cache by letting the function given as an argument * provide the mapping support points for all cells (on all levels) of the diff --git a/source/fe/mapping_q_cache.cc b/source/fe/mapping_q_cache.cc index 61aaf0b0c5..083c6d4d1c 100644 --- a/source/fe/mapping_q_cache.cc +++ b/source/fe/mapping_q_cache.cc @@ -134,17 +134,6 @@ MappingQCache::initialize( -template -void -MappingQCache::initialize( - const Triangulation &triangulation, - const MappingQ & mapping) -{ - this->initialize(mapping, triangulation); -} - - - template void MappingQCache::initialize( diff --git a/tests/mappings/mapping_q_cache_01.cc b/tests/mappings/mapping_q_cache_01.cc index 484caf33b3..1b0291ed69 100644 --- a/tests/mappings/mapping_q_cache_01.cc +++ b/tests/mappings/mapping_q_cache_01.cc @@ -35,7 +35,7 @@ do_test(const unsigned int degree) MappingQ mapping(degree); MappingQCache mapping_cache(degree); - mapping_cache.initialize(tria, mapping); + mapping_cache.initialize(mapping, tria); Point p1; for (unsigned int d = 0; d < dim; ++d) diff --git a/tests/mappings/mapping_q_cache_02.cc b/tests/mappings/mapping_q_cache_02.cc index 2c0e7e3156..03dfd896b5 100644 --- a/tests/mappings/mapping_q_cache_02.cc +++ b/tests/mappings/mapping_q_cache_02.cc @@ -40,7 +40,7 @@ do_test(const unsigned int degree) MappingQ mapping(degree); MappingQCache mapping_cache(degree); - mapping_cache.initialize(tria, mapping); + mapping_cache.initialize(mapping, tria); Point p1; for (unsigned int d = 0; d < dim; ++d) diff --git a/tests/mappings/mapping_q_cache_03.cc b/tests/mappings/mapping_q_cache_03.cc index 106777cc51..ca5ebd8925 100644 --- a/tests/mappings/mapping_q_cache_03.cc +++ b/tests/mappings/mapping_q_cache_03.cc @@ -36,7 +36,7 @@ do_test(const unsigned int degree) MappingQ mapping(degree); MappingQCache mapping_cache(degree); - mapping_cache.initialize(tria, mapping); + mapping_cache.initialize(mapping, tria); Point p1; for (unsigned int d = 0; d < dim; ++d) @@ -65,7 +65,7 @@ do_test(const unsigned int degree) deallog << std::endl; tria.refine_global(1); - mapping_cache.initialize(tria, mapping); + mapping_cache.initialize(mapping, tria); deallog << "Testing degree " << degree << " in " << dim << 'D' << std::endl; for (const auto &cell : tria.active_cell_iterators()) -- 2.39.5