Reference documentation for deal.II version 9.4.1
|
#include <deal.II/distributed/repartitioning_policy_tools.h>
Public Member Functions | |
CellWeightPolicy (const std::function< unsigned int(const typename Triangulation< dim, spacedim >::cell_iterator &, const typename Triangulation< dim, spacedim >::CellStatus)> &weighting_function) | |
virtual LinearAlgebra::distributed::Vector< double > | partition (const Triangulation< dim, spacedim > &tria_in) const override |
Private Attributes | |
const std::function< unsigned int(const typename Triangulation< dim, spacedim >::cell_iterator &, const typename Triangulation< dim, spacedim >::CellStatus)> | weighting_function |
Subscriptor functionality | |
Classes derived from Subscriptor provide a facility to subscribe to this object. This is mostly used by the SmartPointer class. | |
std::atomic< unsigned int > | counter |
std::map< std::string, unsigned int > | counter_map |
std::vector< std::atomic< bool > * > | validity_pointers |
const std::type_info * | object_info |
void | subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
void | unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
unsigned int | n_subscriptions () const |
template<typename StreamType > | |
void | list_subscribers (StreamType &stream) const |
void | list_subscribers () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
using | map_value_type = decltype(counter_map)::value_type |
using | map_iterator = decltype(counter_map)::iterator |
static std::mutex | mutex |
static ::ExceptionBase & | ExcInUse (int arg1, std::string arg2, std::string arg3) |
static ::ExceptionBase & | ExcNoSubscriber (std::string arg1, std::string arg2) |
void | check_no_subscribers () const noexcept |
A policy that allows to specify a weight of each cell. The underlying algorithm will try to distribute the weights equally among the processes.
Definition at line 157 of file repartitioning_policy_tools.h.
RepartitioningPolicyTools::CellWeightPolicy< dim, spacedim >::CellWeightPolicy | ( | const std::function< unsigned int(const typename Triangulation< dim, spacedim >::cell_iterator &, const typename Triangulation< dim, spacedim >::CellStatus)> & | weighting_function | ) |
Constructor taking a function that gives a weight to each cell.
Definition at line 262 of file repartitioning_policy_tools.cc.
|
overridevirtual |
Return a vector of the new owners of the active locally owned and ghost cells.
Implements RepartitioningPolicyTools::Base< dim, spacedim >.
Definition at line 274 of file repartitioning_policy_tools.cc.
|
private |
A function that gives a weight to each cell.
Definition at line 179 of file repartitioning_policy_tools.h.