Reference documentation for deal.II version Git 3e8fd02 2017-09-22 11:37:14 +0200
Public Member Functions | List of all members
internal::DoFHandler::Policy::PolicyBase< dim, spacedim > Class Template Referenceabstract

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

Inheritance diagram for internal::DoFHandler::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::DoFHandler::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

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

Destructor.

Member Function Documentation

template<int dim, int spacedim>
virtual NumberCache internal::DoFHandler::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::DoFHandler::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandler::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandler::Policy::Sequential< DoFHandlerType >.

template<int dim, int spacedim>
virtual std::vector<NumberCache> internal::DoFHandler::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::DoFHandler::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandler::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandler::Policy::Sequential< DoFHandlerType >.

template<int dim, int spacedim>
virtual NumberCache internal::DoFHandler::Policy::PolicyBase< dim, spacedim >::renumber_dofs ( const std::vector< types::global_dof_index > &  new_numbers) const
pure virtual
template<int dim, int spacedim>
virtual NumberCache internal::DoFHandler::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::DoFHandler::Policy::ParallelDistributed< DoFHandlerType >, internal::DoFHandler::Policy::ParallelShared< DoFHandlerType >, and internal::DoFHandler::Policy::Sequential< DoFHandlerType >.


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