Template Class ImmersedRepartitioner

Inheritance Relationships

Base Type

  • public RepartitioningPolicyTools::Base< dim, dim >

Class Documentation

template<int dim, int spacedim = dim>
class ImmersedRepartitioner : public RepartitioningPolicyTools::Base<dim, dim>

A class implementing a repartitioning policy for immersed triangulations.

This class provides functionality to repartition an immersed triangulation based on a background triangulation. It inherits from the RepartitioningPolicyTools::Base class and overrides the partition method. The rank of the immersed cell is assigned to the processor that own the background cell where the center of the immersed cell is located.

Template Parameters:
  • dim – The dimension of the immersed triangulation.

  • spacedim – The dimension of the space in which the triangulation is embedded. Defaults to the same value as dim.

Public Functions

ImmersedRepartitioner(const Triangulation<spacedim> &tria_background)

Constructor for the ImmersedRepartitioner class.

Parameters:

tria_background – A reference to the background triangulation used for repartitioning.

virtual LinearAlgebra::distributed::Vector<double> partition(const Triangulation<dim, spacedim> &tria_immersed) const override

Repartition the given immersed triangulation.

This method computes a new partitioning for the immersed triangulation based on the background triangulation provided during construction.

Parameters:

tria_immersed – A reference to the immersed triangulation to be repartitioned.

Returns:

A distributed vector containing the partitioning information.