]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove MappingQCache initialize
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 1 Jul 2023 16:23:06 +0000 (12:23 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 3 Jul 2023 21:51:15 +0000 (17:51 -0400)
include/deal.II/fe/mapping_q_cache.h
source/fe/mapping_q_cache.cc
tests/mappings/mapping_q_cache_01.cc
tests/mappings/mapping_q_cache_02.cc
tests/mappings/mapping_q_cache_03.cc

index d0bb44e675ce3c7379e0a094295b1415013f534a..9bbf900832d01a9f2f985693b61202c0c2ecb104 100644 (file)
@@ -95,19 +95,6 @@ public:
   initialize(const Mapping<dim, spacedim> &      mapping,
              const Triangulation<dim, spacedim> &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<dim, spacedim> &triangulation,
-             const MappingQ<dim, spacedim> &     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
index 61aaf0b0c5a758cd1cf0b5c752ddb0c1aabe86ac..083c6d4d1cf878afb7a3b905805388f55b8024b1 100644 (file)
@@ -134,17 +134,6 @@ MappingQCache<dim, spacedim>::initialize(
 
 
 
-template <int dim, int spacedim>
-void
-MappingQCache<dim, spacedim>::initialize(
-  const Triangulation<dim, spacedim> &triangulation,
-  const MappingQ<dim, spacedim> &     mapping)
-{
-  this->initialize(mapping, triangulation);
-}
-
-
-
 template <int dim, int spacedim>
 void
 MappingQCache<dim, spacedim>::initialize(
index 484caf33b32ce929c5ce317006e8df598e1eb34b..1b0291ed698b7c3a72dad5691a4a5cd3665b2f2c 100644 (file)
@@ -35,7 +35,7 @@ do_test(const unsigned int degree)
 
   MappingQ<dim>      mapping(degree);
   MappingQCache<dim> mapping_cache(degree);
-  mapping_cache.initialize(tria, mapping);
+  mapping_cache.initialize(mapping, tria);
 
   Point<dim> p1;
   for (unsigned int d = 0; d < dim; ++d)
index 2c0e7e31566fd80d0fdeb964e91774f68355e9b9..03dfd896b586325d240f86337b12b14c0441c1ec 100644 (file)
@@ -40,7 +40,7 @@ do_test(const unsigned int degree)
 
   MappingQ<dim>      mapping(degree);
   MappingQCache<dim> mapping_cache(degree);
-  mapping_cache.initialize(tria, mapping);
+  mapping_cache.initialize(mapping, tria);
 
   Point<dim> p1;
   for (unsigned int d = 0; d < dim; ++d)
index 106777cc514ec8be13b17f8dc03fce153b755d9b..ca5ebd89257c112a3f73729099d4b7ecfec889c8 100644 (file)
@@ -36,7 +36,7 @@ do_test(const unsigned int degree)
 
   MappingQ<dim>      mapping(degree);
   MappingQCache<dim> mapping_cache(degree);
-  mapping_cache.initialize(tria, mapping);
+  mapping_cache.initialize(mapping, tria);
 
   Point<dim> 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())

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.