deal.II version GIT relicensing-1936-ge55124254b 2024-10-04 21:10:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
internal::DoFHandlerImplementation::Policy::ParallelShared< dim, spacedim > Class Template Reference

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

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

Public Member Functions

 ParallelShared (DoFHandler< dim, spacedim > &dof_handler)
 
virtual NumberCache distribute_dofs () const override
 
virtual std::vector< NumberCachedistribute_mg_dofs () const override
 
virtual NumberCache renumber_dofs (const std::vector< types::global_dof_index > &new_numbers) const override
 
virtual NumberCache renumber_mg_dofs (const unsigned int level, const std::vector< types::global_dof_index > &new_numbers) const override
 

Private Attributes

ObserverPointer< DoFHandler< dim, spacedim > > dof_handler
 

Detailed Description

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

This class implements the policy for operations when we use a parallel::shared::Triangulation object.

Definition at line 158 of file dof_handler_policy.h.

Constructor & Destructor Documentation

◆ ParallelShared()

template<int dim, int spacedim>
internal::DoFHandlerImplementation::Policy::ParallelShared< dim, spacedim >::ParallelShared ( DoFHandler< dim, spacedim > &  dof_handler)

Constructor.

Parameters
dof_handlerThe DoFHandler object upon which this policy class is supposed to work.

Definition at line 2738 of file dof_handler_policy.cc.

Member Function Documentation

◆ distribute_dofs()

template<int dim, int spacedim>
NumberCache internal::DoFHandlerImplementation::Policy::ParallelShared< dim, spacedim >::distribute_dofs ( ) const
overridevirtual

Distribute degrees of freedom on the object given as first argument.

On distribution, DoFs are renumbered subdomain-wise and number_cache.n_locally_owned_dofs_per_processor[i] and number_cache.locally_owned_dofs are updated consistently.

Implements internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >.

Definition at line 2883 of file dof_handler_policy.cc.

◆ distribute_mg_dofs()

template<int dim, int spacedim>
std::vector< NumberCache > internal::DoFHandlerImplementation::Policy::ParallelShared< dim, spacedim >::distribute_mg_dofs ( ) const
overridevirtual

This function is not yet implemented.

Implements internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >.

Definition at line 3028 of file dof_handler_policy.cc.

◆ renumber_dofs()

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

Renumber degrees of freedom as specified by the first argument.

The input argument new_numbers may either have as many entries as there are global degrees of freedom (i.e. dof_handler.n_dofs() ) or dof_handler.locally_owned_dofs().n_elements(). Therefore it can be utilized with renumbering functions implemented for the parallel::distributed case.

Implements internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >.

Definition at line 3222 of file dof_handler_policy.cc.

◆ renumber_mg_dofs()

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

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.

Implements internal::DoFHandlerImplementation::Policy::PolicyBase< dim, spacedim >.

Definition at line 3384 of file dof_handler_policy.cc.

Member Data Documentation

◆ dof_handler

template<int dim, int spacedim>
ObserverPointer<DoFHandler<dim, spacedim> > internal::DoFHandlerImplementation::Policy::ParallelShared< dim, spacedim >::dof_handler
private

The DoFHandler object on which this policy object works.

Definition at line 208 of file dof_handler_policy.h.


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