ug4
|
#include <local_algebra.h>
Public Types | |
typedef LocalVector | this_type |
own type More... | |
typedef number | value_type |
Type to store DoF values. More... | |
Public Member Functions | |
void | access_all () |
access all functions More... | |
void | access_by_map (const FunctionIndexMapping &funcMap) |
access only part of the functions using mapping (restrict functions) More... | |
const LocalIndices & | get_indices () const |
get current local indices More... | |
const LFEID & | local_finite_element_id (size_t fct) const |
returns the local finite element id of a function More... | |
LocalVector () | |
default Constructor More... | |
LocalVector (const LocalIndices &ind) | |
Constructor. More... | |
size_t | num_all_dof (size_t fct) const |
returns the number of dofs for a function (unrestricted functions) More... | |
size_t | num_all_fct () const |
returns the number of all functions More... | |
size_t | num_dof (size_t fct) const |
returns the number of dofs for the currently accessible function More... | |
size_t | num_fct () const |
returns the number of currently accessible functions More... | |
number & | operator() (size_t fct, size_t dof) |
access to dof of currently accessible function fct More... | |
number | operator() (size_t fct, size_t dof) const |
const access to dof of currently accessible function fct More... | |
this_type & | operator* (number val) |
multiply all components of the vector More... | |
this_type & | operator*= (number val) |
multiply all components of the vector More... | |
this_type & | operator+= (const this_type &rhs) |
add a local vector More... | |
this_type & | operator-= (const this_type &rhs) |
subtract a local vector More... | |
this_type & | operator= (const this_type &other) |
this_type & | operator= (number val) |
set all components of the vector More... | |
void | resize (const LocalIndices &ind) |
resize for current local indices More... | |
this_type & | scale_append (number s, const this_type &rhs) |
add a scaled vector More... | |
number & | value (size_t fct, size_t dof) |
access to dof of a fct (unrestricted functions) More... | |
const number & | value (size_t fct, size_t dof) const |
const access to dof of a fct (unrestricted functions) More... | |
Protected Member Functions | |
void | check_all_dof (size_t fct, size_t dof) const |
checks correct dof index in debug mode More... | |
void | check_all_fct (size_t fct) const |
checks correct fct index in debug mode More... | |
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 | |
const FunctionIndexMapping * | m_pFuncMap |
Access Mapping. More... | |
const LocalIndices * | m_pIndex |
Indices. More... | |
std::vector< std::vector< value_type > > | m_vvValue |
Entries (fct, dof) More... | |
std::vector< value_type * > | m_vvValueAcc |
Entries (fct, dof) More... | |
own type
typedef number ug::LocalVector::value_type |
Type to store DoF values.
|
inline |
default Constructor
References m_vvValue.
|
inline |
Constructor.
References resize().
|
inline |
access all functions
References m_pFuncMap, m_pIndex, m_vvValue, m_vvValueAcc, and ug::LocalIndices::num_fct().
Referenced by operator=(), and resize().
|
inline |
access only part of the functions using mapping (restrict functions)
References m_pFuncMap, m_vvValue, m_vvValueAcc, and ug::FunctionIndexMapping::num_fct().
Referenced by ug::LocalVectorTimeSeries::access_by_map(), ug::DataImport< TData, dim >::compute_lin_defect(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_def_A_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_def_A_expl_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_def_M_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_jac_A_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_jac_M_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_rhs_elem(), ug::IElemEstimatorFuncs< TLeaf, TDomain >::do_compute_err_est_A_elem(), ug::IElemEstimatorFuncs< TLeaf, TDomain >::do_compute_err_est_M_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_fsh_timestep_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_prep_elem(), ug::IElemEstimatorFuncs< TLeaf, TDomain >::do_prep_err_est_elem(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_prep_timestep_elem(), ug::GradientDataExport< dim >::eval_and_deriv(), ug::VectorDataExport< dim >::eval_and_deriv(), ug::ValueDataExport< dim >::eval_and_deriv(), ug::DataExport< TData, dim >::eval_and_deriv(), operator=(), ug::DataEvaluator< TDomain >::prepare_elem(), and ug::DataEvaluatorBase< TDomain, TElemDisc >::prepare_err_est_elem().
|
inlineprotected |
checks correct dof index in debug mode
References check_all_fct(), num_all_dof(), and UG_LOCALALGEBRA_ASSERT.
Referenced by value().
|
inlineprotected |
checks correct fct index in debug mode
References num_all_fct(), and UG_LOCALALGEBRA_ASSERT.
Referenced by check_all_dof(), and num_all_dof().
|
inlineprotected |
checks correct dof index in debug mode
References check_fct(), num_dof(), and UG_LOCALALGEBRA_ASSERT.
Referenced by operator()().
|
inlineprotected |
checks correct fct index in debug mode
References num_fct(), and UG_LOCALALGEBRA_ASSERT.
Referenced by check_dof(), local_finite_element_id(), and num_dof().
|
inline |
get current local indices
References m_pIndex.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalVector(), and ug::GetLocalVector().
|
inline |
returns the local finite element id of a function
References check_fct(), ug::LocalIndices::local_finite_element_id(), m_pFuncMap, m_pIndex, and UG_ASSERT.
|
inline |
returns the number of dofs for a function (unrestricted functions)
References check_all_fct(), and m_vvValue.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalVector(), check_all_dof(), ug::GetLocalVector(), and ug::NLGaussSeidelSolver< TDomain, TAlgebra >::prepare().
|
inline |
returns the number of all functions
References m_vvValue.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalVector(), check_all_fct(), ug::GetLocalVector(), and ug::NLGaussSeidelSolver< TDomain, TAlgebra >::prepare().
|
inline |
returns the number of dofs for the currently accessible function
References check_fct(), m_pFuncMap, and m_vvValue.
Referenced by check_dof(), and ug::operator<<().
|
inline |
returns the number of currently accessible functions
References m_pFuncMap, m_vvValue, and ug::FunctionIndexMapping::num_fct().
Referenced by ug::FV1InnerBoundaryElemDisc< TImpl, TDomain >::add_def_A_elem(), ug::FV1InnerBoundaryElemDisc< TImpl, TDomain >::add_jac_A_elem(), check_fct(), ug::FV1InnerBoundaryElemDisc< TImpl, TDomain >::compute_err_est_A_elem(), and ug::operator<<().
|
inline |
access to dof of currently accessible function fct
References check_dof(), and m_vvValueAcc.
|
inline |
const access to dof of currently accessible function fct
References check_dof(), and m_vvValueAcc.
multiply all components of the vector
References operator*=().
add a local vector
References m_pIndex, m_vvValue, and UG_LOCALALGEBRA_ASSERT.
subtract a local vector
References m_pIndex, m_vvValue, and UG_LOCALALGEBRA_ASSERT.
References access_all(), access_by_map(), m_pFuncMap, m_pIndex, m_vvValue, m_vvValueAcc, ug::LocalIndices::num_dof(), ug::LocalIndices::num_fct(), and resize().
set all components of the vector
References m_vvValue.
|
inline |
resize for current local indices
References access_all(), m_pIndex, m_vvValue, m_vvValueAcc, ug::LocalIndices::num_dof(), and ug::LocalIndices::num_fct().
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleDefect(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleDefect(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleErrorEstimator(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleJacobian(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleJacobian(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleLinear(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleLinear(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleMassMatrix(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleMassMatrix(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleRhs(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleStiffnessMatrix(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleStiffnessMatrix(), ug::DomainDiscretizationBase< TDomain, TAlgebra, TGlobAssembler >::calc_error(), ug::ActiveSet< TDomain, TAlgebra >::check_conv_elem(), ug::H1SemiDistIntegrand< TGridFunction >::evaluate(), ug::H1EnergyDistIntegrand< TGridFunction >::evaluate(), ug::UserDataIntegrandSq< TData, TGridFunction >::evaluate(), ug::H1SemiIntegrand< TGridFunction >::evaluate(), ug::H1EnergyIntegrand< TGridFunction >::evaluate(), ug::UserDataDistIntegrandSq< TData, TGridFunction >::evaluate(), ug::UserDataIntegrand< TData, TGridFunction >::evaluate(), ug::bridge::Evaluate::NumberValuedUserDataEvaluator< TDomain, TAlgebra >::evaluateOnThisProcess(), ug::bridge::Evaluate::VectorValuedUserDataEvaluator< TDomain, TAlgebra >::evaluateOnThisProcess(), ug::bridge::Evaluate::VectorValuedUserDataEvaluator< TDomain, TAlgebra >::evaluateOnThisProcessNeighbouring(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::FinishTimestepElem(), ug::StdGlobAssembler< TDomain, TAlgebra >::FinishTimestepElem(), LocalVector(), operator=(), ug::NLGaussSeidelSolver< TDomain, TAlgebra >::prepare(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::PrepareTimestepElem(), ug::StdGlobAssembler< TDomain, TAlgebra >::PrepareTimestepElem(), ug::VTKOutput< TDim >::write_cell_data_elementwise(), and ug::VTKOutput< TDim >::write_nodal_data_elementwise().
add a scaled vector
References m_pIndex, m_vvValue, s, and UG_LOCALALGEBRA_ASSERT.
Referenced by ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleDefect(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleDefect(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleLinear(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleLinear(), and ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleRhs().
|
inline |
access to dof of a fct (unrestricted functions)
References check_all_dof(), and m_vvValue.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_vec_to_global(), ug::AddLocalVector(), and ug::GetLocalVector().
|
inline |
const access to dof of a fct (unrestricted functions)
References check_all_dof(), and m_vvValue.
|
protected |
Access Mapping.
Referenced by access_all(), access_by_map(), local_finite_element_id(), num_dof(), num_fct(), and operator=().
|
protected |
Indices.
Referenced by access_all(), get_indices(), local_finite_element_id(), operator+=(), operator-=(), operator=(), resize(), and scale_append().
|
protected |
Entries (fct, dof)
Referenced by access_all(), access_by_map(), LocalVector(), num_all_dof(), num_all_fct(), num_dof(), num_fct(), operator*=(), operator+=(), operator-=(), operator=(), resize(), scale_append(), and value().
|
protected |
Entries (fct, dof)
Referenced by access_all(), access_by_map(), operator()(), operator=(), and resize().