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
-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(
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)
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)
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)
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())