33 #ifndef __H__UG__LIB_DISC__DOF_MANAGER__DOF_DISTRIBUTION_INFO__
34 #define __H__UG__LIB_DISC__DOF_MANAGER__DOF_DISTRIBUTION_INFO__
Definition: smart_pointer.h:296
@ NOT_SPECIFIED
Definition: local_dof_set.h:198
Definition: dof_distribution_info.h:47
std::vector< size_t > m_vvNumDoFsOnROIDPerSubset[NUM_REFERENCE_OBJECTS]
number of DoFs on a reference element type on a subset
Definition: dof_distribution_info.h:127
size_t max_fct_dofs(const size_t fct, int dim) const
returns the maximal number of dofs on a dimension for a function component
Definition: dof_distribution_info.h:84
size_t max_fct_dofs(const size_t fct, const ReferenceObjectID roid) const
returns the number of dofs on a reference object for a function component
Definition: dof_distribution_info.h:90
size_t max_dofs(const ReferenceObjectID roid) const
returns the maximum number of dofs on reference object type
Definition: dof_distribution_info.h:71
void print_local_dof_statistic() const
prints statistic on local dof distribution
Definition: dof_distribution_info.h:110
std::vector< size_t > m_vvMaxDoFsInDimPerSubset[NUM_GEOMETRIC_BASE_OBJECTS]
maximum number of DoFs on geometric objects in a dimension per subset
Definition: dof_distribution_info.h:124
size_t max_fct_dofs(const size_t fct, const GridBaseObjectId gbo, const int si) const
returns the maximum number of dofs on a grid base object on a subset for a function component
Definition: dof_distribution_info.h:96
size_t m_vMaxDoFsInDim[NUM_GEOMETRIC_BASE_OBJECTS]
maximum number of DoFs on geometric objects in a dimension
Definition: dof_distribution_info.h:118
void create_offsets()
creates offset arrays
Definition: dof_distribution_info.cpp:57
size_t max_dofs(const int dim, const int si) const
returns the maximum number of dofs in a dimension on a subset
Definition: dof_distribution_info.h:74
size_t offset(const ReferenceObjectID roid, const int si, const size_t fct) const
returns the offset for reference element, subset and function
Definition: dof_distribution_info.h:103
void init()
initializes the DoFs
Definition: dof_distribution_info.cpp:49
size_t max_fct_dofs(const size_t fct, const int dim, const int si) const
returns the maximum number of dofs in a dimension on a subset for a function component
Definition: dof_distribution_info.h:93
DoFDistributionInfo(ConstSmartPtr< ISubsetHandler > spSH)
constructor
Definition: dof_distribution_info.cpp:45
size_t num_fct_dofs(const size_t fct, const ReferenceObjectID roid, const int si) const
returns the number of dofs on a Reference Object on a subset for a function component
Definition: dof_distribution_info.h:99
size_t num_dofs(const ReferenceObjectID roid, const int si) const
returns the number of dofs on a Reference Object on a subset
Definition: dof_distribution_info.h:80
size_t max_dofs(const int dim) const
returns the maximum number of dofs on grid objects in a dimension
Definition: dof_distribution_info.h:65
@ NOT_SPECIFIED
Definition: dof_distribution_info.h:54
@ NOT_YET_ASSIGNED
Definition: dof_distribution_info.h:52
std::vector< FctInfo > m_vFctInfo
infos for a function component
Definition: dof_distribution_info.h:148
size_t max_dofs(const GridBaseObjectId gbo, const int si) const
returns the maximum number of dofs on a grid base object on a subset
Definition: dof_distribution_info.h:77
size_t max_fct_dofs(const size_t fct, const GridBaseObjectId gbo) const
returns the maximal number of dofs on a base object type for a function component
Definition: dof_distribution_info.h:87
size_t max_dofs(const GridBaseObjectId gbo) const
returns the maximum number of dofs on a grid base object type
Definition: dof_distribution_info.h:68
@ NOT_DEF_ON_SUBSET
Definition: dof_distribution_info.h:50
size_t m_vMaxDoFsOnROID[NUM_REFERENCE_OBJECTS]
maximum number of DoFs on a reference type
Definition: dof_distribution_info.h:121
Definition: dof_distribution_info.h:152
SubsetGroup all_subsets_grp_except_for(const char *names) const
returns subset group of all the subsets except for (by name)
Definition: dof_distribution_info.cpp:288
void print_local_dof_statistic() const
prints statistic on local dof distribution
Definition: dof_distribution_info.h:273
size_t max_fct_dofs(const size_t fct, const int dim, const int si) const
returns the maximum number of dofs in a dimension on a subset for a function component
Definition: dof_distribution_info.h:259
ConstSmartPtr< DoFDistributionInfo > m_spDDI
Function Pattern.
Definition: dof_distribution_info.h:280
size_t max_dofs(const int dim, const int si) const
returns the maximum number of dofs in a dimension on a subset
Definition: dof_distribution_info.h:240
size_t num_fct(int si) const
number of discrete functions on subset si
Definition: dof_distribution_info.h:179
int num_subsets() const
returns number of subsets
Definition: dof_distribution_info.h:192
bool is_def_everywhere(size_t fct) const
returns true if the discrete function nr_fct is defined everywhere
Definition: dof_distribution_info.h:220
int subset_id_by_name(const char *name) const
returns the subset id
Definition: dof_distribution_info.h:204
bool is_def_in_subset(size_t fct, int si) const
returns if a function is defined on a subset
Definition: dof_distribution_info.h:217
size_t max_dofs(const GridBaseObjectId gbo) const
returns the maximum number of dofs on a grid base object type
Definition: dof_distribution_info.h:234
size_t max_fct_dofs(const size_t fct, const GridBaseObjectId gbo) const
returns the maximal number of dofs on a base object type for a function component
Definition: dof_distribution_info.h:253
size_t max_fct_dofs(const size_t fct, int dim) const
returns the maximal number of dofs on a dimension for a function component
Definition: dof_distribution_info.h:250
ConstSmartPtr< DoFDistributionInfo > dof_distribution_info() const
returns underlying info
Definition: dof_distribution_info.h:166
size_t num_fct_dofs(const size_t fct, const ReferenceObjectID roid, const int si) const
returns the number of dofs on a Reference Object on a subset for a function component
Definition: dof_distribution_info.h:265
std::string name(size_t fct) const
returns the name of the discrete function nr_fct
Definition: dof_distribution_info.h:182
int dim(size_t fct) const
returns the dimension in which solution lives
Definition: dof_distribution_info.h:195
size_t fct_id_by_name(const char *name) const
returns fct id by name
Definition: dof_distribution_info.h:188
std::vector< std::string > names() const
returns the names of the discrete functions
Definition: dof_distribution_info.h:185
size_t max_fct_dofs(const size_t fct, const ReferenceObjectID roid) const
returns the number of dofs on a reference object for a function component
Definition: dof_distribution_info.h:256
DoFDistributionInfoProvider(ConstSmartPtr< DoFDistributionInfo > spDDI)
constructor
Definition: dof_distribution_info.h:155
const LFEID & lfeid(size_t fct) const
Definition: dof_distribution_info.h:226
FunctionGroup fct_grp_by_name(const char *names) const
returns a function group to a string of functions
Definition: dof_distribution_info.cpp:278
size_t max_dofs(const int dim) const
returns the maximum number of dofs on grid objects in a dimension
Definition: dof_distribution_info.h:231
const LFEID & local_finite_element_id(size_t fct) const
Definition: dof_distribution_info.h:225
DoFDistributionInfoProvider()
constructor
Definition: dof_distribution_info.h:160
size_t max_fct_dofs(const size_t fct, const GridBaseObjectId gbo, const int si) const
returns the maximum number of dofs on a grid base object on a subset for a function component
Definition: dof_distribution_info.h:262
std::string subset_name(int si) const
returns subset name
Definition: dof_distribution_info.h:201
size_t max_dofs(const ReferenceObjectID roid) const
returns the maximum number of dofs on reference object type
Definition: dof_distribution_info.h:237
size_t num_dofs(const ReferenceObjectID roid, const int si) const
returns the number of dofs on a Reference Object on a subset
Definition: dof_distribution_info.h:246
size_t offset(const ReferenceObjectID roid, const int si, const size_t fct) const
returns the offset for reference element, subset and function
Definition: dof_distribution_info.h:269
int dim_subset(int si) const
returns dimension of subset
Definition: dof_distribution_info.h:198
void set_dof_distribution_info(ConstSmartPtr< DoFDistributionInfo > spDDI)
sets the dd info
Definition: dof_distribution_info.h:163
ConstSmartPtr< FunctionPattern > function_pattern() const
returns the function pattern
Definition: dof_distribution_info.h:172
size_t max_dofs(const GridBaseObjectId gbo, const int si) const
returns the maximum number of dofs on a grid base object on a subset
Definition: dof_distribution_info.h:243
void print_local_dof_statistic(int verboseLev) const
prints informations
Definition: dof_distribution_info.h:276
ConstSmartPtr< ISubsetHandler > subset_handler() const
returns the subset handler
Definition: dof_distribution_info.h:169
size_t num_fct() const
number of discrete functions on subset si
Definition: dof_distribution_info.h:176
SubsetGroup subset_grp_by_name(const char *names) const
returns subset group by name
Definition: dof_distribution_info.cpp:283
Definition: function_group.h:52
Describes the setup of discrete functions on a SubsetHandler.
Definition: function_pattern.h:60
int dim(size_t fct) const
returns the dimension in which solution lives
Definition: function_pattern.h:197
Identifier for Local Finite Elements.
Definition: local_finite_element_id.h:98
Group of subsets.
Definition: subset_group.h:51
ReferenceObjectID
these ids are used to identify the shape of a geometric object.
Definition: grid_base_objects.h:74
@ NUM_REFERENCE_OBJECTS
Definition: grid_base_objects.h:85
GridBaseObjectId
enumeration of the GridBaseObjects that make up a grid.
Definition: grid_base_objects.h:59
@ NUM_GEOMETRIC_BASE_OBJECTS
Definition: grid_base_objects.h:64
Definition: dof_distribution_info.h:130
std::vector< size_t > vvOffsets[NUM_REFERENCE_OBJECTS]
offset map
Definition: dof_distribution_info.h:144
std::vector< size_t > vvMaxDoFsInDimPerSubset[NUM_GEOMETRIC_BASE_OBJECTS]
maximum number of DoFs on geometric objects in a dimension per subset
Definition: dof_distribution_info.h:138
size_t vMaxDoFsOnROID[NUM_REFERENCE_OBJECTS]
number Dofs for local DoF set and subelement of element
Definition: dof_distribution_info.h:135
size_t vMaxDoFsInDim[NUM_GEOMETRIC_BASE_OBJECTS]
number Dofs for local DoF set and subelement of element
Definition: dof_distribution_info.h:132
std::vector< size_t > vvNumDoFsOnROIDPerSubset[NUM_REFERENCE_OBJECTS]
number of DoFs on a reference element type on a subset
Definition: dof_distribution_info.h:141