I need access for the p4est object inside a distributed Triangulation.
Provide an accessor function for this.
const std::vector<types::global_dof_index> &
get_coarse_cell_to_p4est_tree_permutation() const;
+ /**
+ * This returns a pointer to the internally stored p4est object (of type
+ * p4est_t or p8est_t depending on @p dim).
+ *
+ * @warning: If you modify the p4est object, internal data structures
+ * can become inconsistent.
+ */
+ typename dealii::internal::p4est::types<dim>::forest *
+ get_p4est() const;
+
/**
* In addition to the action in the base class Triangulation, this
* function joins faces in the p4est forest for periodic boundary
+ template <int dim, int spacedim>
+ typename dealii::internal::p4est::types<dim>::forest *
+ Triangulation<dim, spacedim>::get_p4est() const
+ {
+ Assert(parallel_forest != nullptr,
+ ExcMessage("The forest has not been allocated yet."));
+ return parallel_forest;
+ }
+
+
+
template <int dim, int spacedim>
void
Triangulation<dim, spacedim>::update_number_cache()
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