ug4
ug::DoFCount Class Reference

#include <dof_count.h>

+ Inheritance diagram for ug::DoFCount:

Classes

struct  Cnt
 

Public Member Functions

void add (int fct, int si, SurfaceView::SurfaceState ss, byte is, uint64 numDoF)
 
void collect_values (std::vector< uint64 > &vNum) const
 
 DoFCount ()
 
 DoFCount (const GridLevel &gl, ConstSmartPtr< DoFDistributionInfo > spDDInfo)
 
const GridLevelgrid_level () const
 
uint64 num (int fct, int si, SurfaceView::SurfaceState ss, byte is) const
 
uint64 num_contains (int fct, int si, SurfaceView::SurfaceState ss, byte is) const
 
void set_values (const std::vector< uint64 > &vNum)
 
void sum_values_over_procs (int proc=-1)
 sums values over all procs (reduced to 'proc', allreduce for -1) More...
 
- Public Member Functions inherited from ug::DoFDistributionInfoProvider
SubsetGroup all_subsets_grp_except_for (const char *names) const
 returns subset group of all the subsets except for (by name) More...
 
int dim (size_t fct) const
 returns the dimension in which solution lives More...
 
int dim_subset (int si) const
 returns dimension of subset More...
 
ConstSmartPtr< DoFDistributionInfodof_distribution_info () const
 returns underlying info More...
 
 DoFDistributionInfoProvider ()
 constructor More...
 
 DoFDistributionInfoProvider (ConstSmartPtr< DoFDistributionInfo > spDDI)
 constructor More...
 
FunctionGroup fct_grp_by_name (const char *names) const
 returns a function group to a string of functions More...
 
size_t fct_id_by_name (const char *name) const
 returns fct id by name More...
 
ConstSmartPtr< FunctionPatternfunction_pattern () const
 returns the function pattern More...
 
bool is_def_everywhere (size_t fct) const
 returns true if the discrete function nr_fct is defined everywhere More...
 
bool is_def_in_subset (size_t fct, int si) const
 returns if a function is defined on a subset More...
 
size_t max_dofs (const GridBaseObjectId gbo) const
 returns the maximum number of dofs on a grid base object type More...
 
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 More...
 
size_t max_dofs (const int dim) const
 returns the maximum number of dofs on grid objects in a dimension More...
 
size_t max_dofs (const int dim, const int si) const
 returns the maximum number of dofs in a dimension on a subset More...
 
size_t max_dofs (const ReferenceObjectID roid) const
 returns the maximum number of dofs on reference object type More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
std::string name (size_t fct) const
 returns the name of the discrete function nr_fct More...
 
std::vector< std::string > names () const
 returns the names of the discrete functions More...
 
size_t num_dofs (const ReferenceObjectID roid, const int si) const
 returns the number of dofs on a Reference Object on a subset More...
 
size_t num_fct () const
 number of discrete functions on subset si More...
 
size_t num_fct (int si) const
 number of discrete functions on subset si More...
 
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 More...
 
int num_subsets () const
 returns number of subsets More...
 
size_t offset (const ReferenceObjectID roid, const int si, const size_t fct) const
 returns the offset for reference element, subset and function More...
 
void print_local_dof_statistic () const
 prints statistic on local dof distribution More...
 
void print_local_dof_statistic (int verboseLev) const
 prints informations More...
 
void set_dof_distribution_info (ConstSmartPtr< DoFDistributionInfo > spDDI)
 sets the dd info More...
 
SubsetGroup subset_grp_by_name (const char *names) const
 returns subset group by name More...
 
ConstSmartPtr< ISubsetHandlersubset_handler () const
 returns the subset handler More...
 
int subset_id_by_name (const char *name) const
 returns the subset id More...
 
std::string subset_name (int si) const
 returns subset name More...
 
const LFEIDlocal_finite_element_id (size_t fct) const
 
const LFEIDlfeid (size_t fct) const
 

Static Public Attributes

static const byte ALL_ES = ES_MAX + 1
 
static const int ALL_FCT = -1
 
static const byte ALL_SS = SS_MAX + 1
 
static const int ALL_SUBSET = -1
 
static const byte ES_MAX = (ES_V_MASTER | ES_H_MASTER | ES_H_SLAVE | ES_V_SLAVE)
 
static const byte SS_MAX = SurfaceView::ALL
 
static const byte UNIQUE_ES = ES_MAX + 2
 
static const byte UNIQUE_SS = SS_MAX + 2
 

Protected Attributes

GridLevel m_gridLevel
 
std::vector< std::vector< Cnt > > vvCmpSubset
 
- Protected Attributes inherited from ug::DoFDistributionInfoProvider
ConstSmartPtr< DoFDistributionInfom_spDDI
 Function Pattern. More...
 

Constructor & Destructor Documentation

◆ DoFCount() [1/2]

ug::DoFCount::DoFCount ( )
inline

◆ DoFCount() [2/2]

Member Function Documentation

◆ add()

void ug::DoFCount::add ( int  fct,
int  si,
SurfaceView::SurfaceState  ss,
byte  is,
uint64  numDoF 
)

◆ collect_values()

void ug::DoFCount::collect_values ( std::vector< uint64 > &  vNum) const

References PROFILE_FUNC, and vvCmpSubset.

Referenced by sum_values_over_procs().

◆ grid_level()

const GridLevel& ug::DoFCount::grid_level ( ) const
inline

References m_gridLevel.

Referenced by ug::PrintDoFCount().

◆ num()

◆ num_contains()

◆ set_values()

void ug::DoFCount::set_values ( const std::vector< uint64 > &  vNum)

References PROFILE_FUNC, and vvCmpSubset.

Referenced by sum_values_over_procs().

◆ sum_values_over_procs()

void ug::DoFCount::sum_values_over_procs ( int  proc = -1)

Member Data Documentation

◆ ALL_ES

const byte ug::DoFCount::ALL_ES = ES_MAX + 1
static

◆ ALL_FCT

const int ug::DoFCount::ALL_FCT = -1
static

◆ ALL_SS

const byte ug::DoFCount::ALL_SS = SS_MAX + 1
static

◆ ALL_SUBSET

const int ug::DoFCount::ALL_SUBSET = -1
static

◆ ES_MAX

◆ m_gridLevel

GridLevel ug::DoFCount::m_gridLevel
protected

Referenced by grid_level().

◆ SS_MAX

◆ UNIQUE_ES

◆ UNIQUE_SS

◆ vvCmpSubset

std::vector<std::vector<Cnt> > ug::DoFCount::vvCmpSubset
protected

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