Reference documentation for deal.II version 9.0.0
|
Public Member Functions | |
MGVertexDoFs () | |
void | init (const unsigned int coarsest_level, const unsigned int finest_level, const unsigned int dofs_per_vertex) |
unsigned int | get_coarsest_level () const |
unsigned int | get_finest_level () const |
types::global_dof_index | get_index (const unsigned int level, const unsigned int dof_number, const unsigned int dofs_per_vertex) const |
void | set_index (const unsigned int level, const unsigned int dof_number, const unsigned int dofs_per_vertex, const types::global_dof_index index) |
Private Attributes | |
unsigned int | coarsest_level |
unsigned int | finest_level |
std::unique_ptr< types::global_dof_index[]> | indices |
A data structure that is used to store the DoF indices associated with a particular vertex. Unlike cells, vertices live on several levels of a multigrid hierarchy; consequently, we need to store DoF indices for each vertex for each of the levels it lives on. This class does this.
Definition at line 1067 of file dof_handler.h.
DoFHandler< dim, spacedim >::MGVertexDoFs::MGVertexDoFs | ( | ) |
Constructor.
Definition at line 1285 of file dof_handler.cc.
void DoFHandler< dim, spacedim >::MGVertexDoFs::init | ( | const unsigned int | coarsest_level, |
const unsigned int | finest_level, | ||
const unsigned int | dofs_per_vertex | ||
) |
A function that is called to allocate the necessary amount of memory to store the indices of the DoFs that live on this vertex for the given (inclusive) range of levels.
Definition at line 1294 of file dof_handler.cc.
unsigned int DoFHandler< dim, spacedim >::MGVertexDoFs::get_coarsest_level | ( | ) | const |
Return the coarsest level for which this structure stores data.
Definition at line 1317 of file dof_handler.cc.
unsigned int DoFHandler< dim, spacedim >::MGVertexDoFs::get_finest_level | ( | ) | const |
Return the finest level for which this structure stores data.
Definition at line 1325 of file dof_handler.cc.
types::global_dof_index DoFHandler< dim, spacedim >::MGVertexDoFs::get_index | ( | const unsigned int | level, |
const unsigned int | dof_number, | ||
const unsigned int | dofs_per_vertex | ||
) | const |
Return the index of the dof_number
th degree of freedom for the given level stored for the current vertex.
void DoFHandler< dim, spacedim >::MGVertexDoFs::set_index | ( | const unsigned int | level, |
const unsigned int | dof_number, | ||
const unsigned int | dofs_per_vertex, | ||
const types::global_dof_index | index | ||
) |
Set the index of the dof_number
th degree of freedom for the given level stored for the current vertex to index
.
|
private |
Coarsest level for which this object stores DoF indices.
Definition at line 1116 of file dof_handler.h.
|
private |
Finest level for which this object stores DoF indices.
Definition at line 1121 of file dof_handler.h.
|
private |
A pointer to an array where we store the indices of the DoFs that live on the various levels this vertex exists on.
The starting offset of the DoFs that belong to a level
are given by dofs_per_vertex * (level-coarsest_level)
. dofs_per_vertex
must therefore be passed as an argument to the functions that set or read an index.
Definition at line 1132 of file dof_handler.h.