ug4
|
#include <local_algebra.h>
Public Types | |
typedef index_type | comp_type |
Component type used by algebra. More... | |
typedef size_t | index_type |
Index type used by algebra. More... | |
Public Member Functions | |
void | clear () |
clears all fct More... | |
void | clear_dof (size_t fct) |
clears the dofs of a function More... | |
comp_type & | comp (size_t fct, size_t dof) |
algebra comp for (fct, dof) More... | |
comp_type | comp (size_t fct, size_t dof) const |
algebra comp for (fct, dof) More... | |
bool | contains_index (index_type ind) |
checks if the local index object references a given index More... | |
index_type & | index (size_t fct, size_t dof) |
global algebra index for (fct, dof) More... | |
index_type | index (size_t fct, size_t dof) const |
global algebra index for (fct, dof) More... | |
const LFEID & | local_finite_element_id (size_t fct) const |
returns the local finite element id of a function More... | |
LocalIndices () | |
Default Constructor. More... | |
const DoFIndex & | multi_index (size_t fct, size_t dof) const |
global algebra multi-index for (fct, dof) More... | |
size_t | num_dof () const |
number of dofs of all accessible (sum) More... | |
size_t | num_dof (size_t fct) const |
number of dofs for accessible function More... | |
size_t | num_fct () const |
number of functions More... | |
void | push_back_index (size_t fct, size_t index) |
adds an index (increases size) More... | |
void | push_back_multi_index (size_t fct, size_t index, size_t comp) |
adds an index (increases size) More... | |
void | reserve_dof (size_t fct, size_t numDoF) |
reserves memory for the number of dofs More... | |
void | resize_dof (size_t fct, size_t numDoF) |
sets the number of dofs of a function More... | |
void | resize_fct (size_t numFct) |
sets the number of functions More... | |
void | set_lfeID (size_t fct, const LFEID &lfeID) |
sets the local finite element id for a function More... | |
Protected Member Functions | |
void | check_dof (size_t fct, size_t dof) const |
checks correct dof index in debug mode More... | |
void | check_fct (size_t fct) const |
checks correct fct index in debug mode More... | |
Protected Attributes | |
std::vector< LFEID > | m_vLFEID |
std::vector< std::vector< DoFIndex > > | m_vvIndex |
Component type used by algebra.
typedef size_t ug::LocalIndices::index_type |
Index type used by algebra.
|
inline |
Default Constructor.
|
inlineprotected |
checks correct dof index in debug mode
References check_fct(), num_dof(), and UG_LOCALALGEBRA_ASSERT.
Referenced by comp(), index(), and multi_index().
|
inlineprotected |
checks correct fct index in debug mode
References num_fct(), and UG_LOCALALGEBRA_ASSERT.
Referenced by check_dof(), num_dof(), push_back_multi_index(), reserve_dof(), and resize_dof().
|
inline |
clears all fct
References m_vvIndex.
|
inline |
clears the dofs of a function
References resize_dof().
Referenced by ug::DoFDistribution::_indices().
|
inline |
algebra comp for (fct, dof)
References check_dof(), and m_vvIndex.
|
inline |
algebra comp for (fct, dof)
References check_dof(), and m_vvIndex.
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalMatrixToGlobal(), ug::AddLocalVector(), ug::GetLocalVector(), and push_back_multi_index().
|
inline |
|
inline |
global algebra index for (fct, dof)
References check_dof(), and m_vvIndex.
|
inline |
global algebra index for (fct, dof)
References check_dof(), and m_vvIndex.
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalMatrixToGlobal(), ug::AddLocalVector(), ug::GetLocalVector(), ug::NLGaussSeidelSolver< TDomain, TAlgebra >::prepare(), push_back_index(), and push_back_multi_index().
|
inline |
returns the local finite element id of a function
References m_vLFEID, and UG_ASSERT.
Referenced by ug::LocalVector::local_finite_element_id().
|
inline |
global algebra multi-index for (fct, dof)
References check_dof(), and m_vvIndex.
Referenced by ug::FV1InnerBoundaryElemDisc< TImpl, TDomain >::prep_elem().
|
inline |
number of dofs of all accessible (sum)
References num_fct().
Referenced by check_dof(), and contains_index().
|
inline |
number of dofs for accessible function
References check_fct(), and m_vvIndex.
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::DomainDiscretizationBase< TDomain, TAlgebra, TGlobAssembler >::calc_error(), ug::ActiveSet< TDomain, TAlgebra >::check_conv_elem(), ug::LocalVector::operator=(), ug::LocalVector::resize(), ug::LocalMatrix::resize(), and ug::DependentUserData< TData, dim >::update_dof_sizes().
|
inline |
number of functions
References m_vvIndex.
Referenced by ug::LocalVector::access_all(), ug::LocalMatrix::access_all(), ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::DomainDiscretizationBase< TDomain, TAlgebra, TGlobAssembler >::calc_error(), ug::ActiveSet< TDomain, TAlgebra >::check_conv_elem(), check_fct(), contains_index(), num_dof(), ug::LocalVector::operator=(), ug::LocalVector::resize(), and ug::LocalMatrix::resize().
|
inline |
adds an index (increases size)
References index(), and push_back_multi_index().
Referenced by ug::DoFDistribution::constrained_edge_indices(), ug::DoFDistribution::constrained_face_indices(), ug::DoFDistribution::constrained_vertex_indices(), ug::DoFDistribution::indices(), and ug::DoFDistribution::indices_on_vertex().
|
inline |
adds an index (increases size)
References check_fct(), comp(), index(), and m_vvIndex.
Referenced by ug::DoFDistribution::constrained_edge_indices(), ug::DoFDistribution::constrained_face_indices(), ug::DoFDistribution::constrained_vertex_indices(), ug::DoFDistribution::indices(), ug::DoFDistribution::indices_on_vertex(), and push_back_index().
|
inline |
reserves memory for the number of dofs
References check_fct(), and m_vvIndex.
|
inline |
sets the number of dofs of a function
References check_fct(), and m_vvIndex.
Referenced by clear_dof().
|
inline |
sets the number of functions
References m_vLFEID, and m_vvIndex.
Referenced by ug::DoFDistribution::_indices().
|
inline |
|
protected |
Referenced by local_finite_element_id(), resize_fct(), and set_lfeID().
|
protected |
Referenced by clear(), comp(), contains_index(), index(), multi_index(), num_dof(), num_fct(), push_back_multi_index(), reserve_dof(), resize_dof(), and resize_fct().