Reference documentation for deal.II version 9.0.0
Public Member Functions | List of all members
internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim > Class Template Referenceabstract

#include <deal.II/dofs/dof_handler_policy.h>

Inheritance diagram for internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >:
[legend]

Public Member Functions

virtual ~PolicyBase ()=default
 
virtual NumberCache distribute_dofs () const =0
 
virtual std::vector< NumberCachedistribute_mg_dofs () const =0
 
virtual NumberCache renumber_dofs (const std::vector< types::global_dof_index > &new_numbers) const =0
 
virtual NumberCache renumber_mg_dofs (const unsigned int level, const std::vector< types::global_dof_index > &new_numbers) const =0
 

Detailed Description

template<int dim, int spacedim>
class internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >

A class that implements policies for how the DoFHandler::distribute_dofs and DoFHandler::renumber_dofs functions should work.

Definition at line 54 of file dof_handler.h.

Constructor & Destructor Documentation

◆ ~PolicyBase()

template<int dim, int spacedim>
virtual internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >::~PolicyBase ( )
virtualdefault

Destructor.

Member Function Documentation

◆ distribute_dofs()

template<int dim, int spacedim>
virtual NumberCache internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >::distribute_dofs ( ) const
pure virtual

Distribute degrees of freedom on the DoFHandler object associated with this policy object. The argument is a reference to the NumberCache of the DoFHandler object. The function may modify it to make DoFHandler related functions work properly when called within the policies classes. The updated NumberCache is written to that argument.

Implemented in internal::DoFHandlerImplementation::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandlerImplementation::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandlerImplementation::Policy::Sequential< DoFHandlerType >.

◆ distribute_mg_dofs()

template<int dim, int spacedim>
virtual std::vector<NumberCache> internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >::distribute_mg_dofs ( ) const
pure virtual

Distribute the multigrid dofs on each level of the DoFHandler associated with this policy object. Return a vector of number caches for all of the levels.

Implemented in internal::DoFHandlerImplementation::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandlerImplementation::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandlerImplementation::Policy::Sequential< DoFHandlerType >.

◆ renumber_dofs()

template<int dim, int spacedim>
virtual NumberCache internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >::renumber_dofs ( const std::vector< types::global_dof_index > &  new_numbers) const
pure virtual

◆ renumber_mg_dofs()

template<int dim, int spacedim>
virtual NumberCache internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >::renumber_mg_dofs ( const unsigned int  level,
const std::vector< types::global_dof_index > &  new_numbers 
) const
pure virtual

Renumber multilevel degrees of freedom on one level of a multigrid hierarchy. The second argument specifies the set of new DoF indices.

Return an updated NumberCache for the specified level of the DoFHandler after renumbering.

Implemented in internal::DoFHandlerImplementation::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandlerImplementation::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandlerImplementation::Policy::Sequential< DoFHandlerType >.


The documentation for this class was generated from the following files: