![]() |
Reference documentation for deal.II version 9.6.0
|
Enumerations | |
enum class | PolynomialCoarseningSequenceType { bisect , decrease_by_one , go_to_one } |
Functions | |
unsigned int | create_next_polynomial_coarsening_degree (const unsigned int degree, const PolynomialCoarseningSequenceType &p_sequence) |
std::vector< unsigned int > | create_polynomial_coarsening_sequence (const unsigned int max_degree, const PolynomialCoarseningSequenceType &p_sequence) |
template<int dim, int spacedim> | |
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > | create_geometric_coarsening_sequence (const Triangulation< dim, spacedim > &tria) |
template<int dim, int spacedim> | |
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > | create_geometric_coarsening_sequence (Triangulation< dim, spacedim > &tria, const RepartitioningPolicyTools::Base< dim, spacedim > &policy, const bool preserve_fine_triangulation, const bool repartition_fine_triangulation) |
template<int dim, int spacedim> | |
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > | create_geometric_coarsening_sequence (const Triangulation< dim, spacedim > &tria, const RepartitioningPolicyTools::Base< dim, spacedim > &policy, const bool repartition_fine_triangulation=false) |
Global coarsening utility functions.
|
strong |
Common polynomial coarsening sequences.
Definition at line 118 of file mg_transfer_global_coarsening.h.
unsigned int MGTransferGlobalCoarseningTools::create_next_polynomial_coarsening_degree | ( | const unsigned int | degree, |
const PolynomialCoarseningSequenceType & | p_sequence ) |
For a given degree
and polynomial coarsening sequence p_sequence
, determine the next coarser degree.
Definition at line 22 of file mg_transfer_global_coarsening.cc.
std::vector< unsigned int > MGTransferGlobalCoarseningTools::create_polynomial_coarsening_sequence | ( | const unsigned int | max_degree, |
const PolynomialCoarseningSequenceType & | p_sequence ) |
For a given max_degree
and polynomial coarsening sequence p_sequence
, determine the full sequence of polynomial degrees, sorted in ascending order.
Definition at line 43 of file mg_transfer_global_coarsening.cc.
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > MGTransferGlobalCoarseningTools::create_geometric_coarsening_sequence | ( | const Triangulation< dim, spacedim > & | tria | ) |
For a given triangulation tria
, determine the geometric coarsening sequence by repeated global coarsening of the provided triangulation.
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > MGTransferGlobalCoarseningTools::create_geometric_coarsening_sequence | ( | Triangulation< dim, spacedim > & | tria, |
const RepartitioningPolicyTools::Base< dim, spacedim > & | policy, | ||
const bool | preserve_fine_triangulation, | ||
const bool | repartition_fine_triangulation ) |
Similar to the above function but also taking a policy
for repartitioning the triangulations on the coarser levels. If preserve_fine_triangulation
is set, the input triangulation is not altered, else the triangulation is coarsened. If repartition_fine_triangulation
is set, the triangulation on the finest level is repartitioned as well. If the flags are set to true/false, the input triangulation is simply used as the finest triangulation.
std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > MGTransferGlobalCoarseningTools::create_geometric_coarsening_sequence | ( | const Triangulation< dim, spacedim > & | tria, |
const RepartitioningPolicyTools::Base< dim, spacedim > & | policy, | ||
const bool | repartition_fine_triangulation = false ) |
Similar to the above function but taking in a constant version of tria
. As a consequence, it can not be used for coarsening directly, so a temporary copy will be created internally.