v0.8.23
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
MoFEM::Problem Struct Reference

keeps basic data about problemThis is low level structure with information about problem, what elements compose problem and what DOFs are on rows and columns. More...

#include <src/multi_indices/ProblemsMultiIndices.hpp>

Collaboration diagram for MoFEM::Problem:
[legend]

Classes

struct  SubProblemData
 Subproblem problem data. More...
 

Public Types

typedef multi_index_container< boost::weak_ptr< std::vector< NumeredDofEntity > >, indexed_by< sequenced<> > > SequenceDofContainer
 

Public Member Functions

const boost::shared_ptr< NumeredDofEntity_multiIndex > & getNumeredDofsRows () const
 get access to numeredDofsRows storing DOFs on rows More...
 
const boost::shared_ptr< NumeredDofEntity_multiIndex > & getNumeredDofsCols () const
 get access to numeredDofsCols storing DOFs on cols More...
 
const boost::shared_ptr< NumeredEntFiniteElement_multiIndex > & getNumeredFiniteElements () const
 get access to reference for multi-index storing finite elements More...
 
boost::shared_ptr< SubProblemData > & getSubData () const
 Get main problem of sub-problem is. More...
 
boost::shared_ptr< ComposedProblemsData > & getComposedProblemsData () const
 Het composed problems data structure. More...
 
MoFEMErrorCode getDofByNameEntAndEntDofIdx (const string name, const EntityHandle ent, const int ent_dof_idx, const RowColData row_or_col, boost::shared_ptr< NumeredDofEntity > &dof_ptr) const
 get DOFs from problem More...
 
NumeredEntFiniteElementbyName::iterator getNumeredFEsBegin (std::string fe_name) const
 
NumeredEntFiniteElementbyName::iterator getNumeredFEsEnd (std::string fe_name) const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsRowsBegin () const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsRowsEnd () const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsColsBegin () const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsColsEnd () const
 
NumeredDofEntityByLocalIdx::iterator getNumeredDofsRowsByLocIdxBegin (const DofIdx locidx) const
 
NumeredDofEntityByLocalIdx::iterator getNumeredDofsRowsByLocIdxEnd (const DofIdx locidx) const
 
NumeredDofEntityByLocalIdx::iterator getNumeredDofsColsByLocIdxBegin (const DofIdx locidx) const
 
NumeredDofEntityByLocalIdx::iterator getNumeredDofsColsByLocIdxEnd (const DofIdx locidx) const
 
NumeredDofEntityByEnt::iterator getNumeredDofsRowsByEntBegin (const EntityHandle ent) const
 
NumeredDofEntityByEnt::iterator getNumeredDofsRowsByEntEnd (const EntityHandle ent) const
 
NumeredDofEntityByEnt::iterator getNumeredDofsColsByEntBegin (const EntityHandle ent) const
 
NumeredDofEntityByEnt::iterator getNumeredDofsColsByEntEnd (const EntityHandle ent) const
 
NumeredDofEntityByFieldName::iterator getNumeredDofsRowsBegin (const std::string &name) const
 
NumeredDofEntityByFieldName::iterator getNumeredDofsRowsEnd (const std::string &name) const
 
NumeredDofEntityByFieldName::iterator getNumeredDofsColsBegin (const std::string &name) const
 
NumeredDofEntityByFieldName::iterator getNumeredDofsColsEnd (const std::string &name) const
 
NumeredDofEntityByNameEntAndPart::iterator getNumeredDofsRowsBegin (const std::string &name, const EntityHandle ent, const int part) const
 
NumeredDofEntityByNameEntAndPart::iterator getNumeredDofsRowsEnd (const std::string &name, const EntityHandle ent, const int part) const
 
NumeredDofEntityByNameEntAndPart::iterator getNumeredDofsColsBegin (const std::string &name, const EntityHandle ent, const int part) const
 
NumeredDofEntityByNameEntAndPart::iterator getNumeredDofsColsEnd (const std::string &name, const EntityHandle ent, const int part) const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsRowsBegin (const int part) const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsRowsEnd (const int part) const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsColsBegin (const int part) const
 
NumeredDofEntity_multiIndex::iterator getNumeredDofsColsEnd (const int part) const
 
 Problem (Interface &moab, const EntityHandle meshset)
 
virtual ~Problem ()
 
BitProblemId getId () const
 
std::string getName () const
 
DofIdx getNbDofsRow () const
 
DofIdx getNbDofsCol () const
 
DofIdx getNbLocalDofsRow () const
 
DofIdx getNbLocalDofsCol () const
 
DofIdx getNbGhostDofsRow () const
 
DofIdx getNbGhostDofsCol () const
 
BitRefLevel getBitRefLevel () const
 
BitRefLevel getMaskBitRefLevel () const
 
MoFEMErrorCode getRowDofsByPetscGlobalDofIdx (DofIdx idx, const NumeredDofEntity **dof_ptr) const
 
MoFEMErrorCode getColDofsByPetscGlobalDofIdx (DofIdx idx, const NumeredDofEntity **dof_ptr) const
 
BitFEId getBitFEId () const
 
MoFEMErrorCode getNumberOfElementsByNameAndPart (MPI_Comm comm, const std::string name, PetscLayout *layout) const
 Get number of finite elements by name on processors. More...
 
MoFEMErrorCode getNumberOfElementsByPart (MPI_Comm comm, PetscLayout *layout) const
 Get number of finite elements on processors. More...
 
boost::shared_ptr< SequenceDofContainer > & getRowDofsSequence () const
 Get reference to sequence data numbered dof container. More...
 
boost::shared_ptr< SequenceDofContainer > & getColDofsSequence () const
 Get reference to sequence data numbered dof container. More...
 

Public Attributes

EntityHandle meshset
 
BitProblemIdtagId
 Unique problem ID. More...
 
const char * tagName
 Problem name. More...
 
int tagNameSize
 Size of problem name. More...
 
BitFEIdtagBitFEId
 IDs of finite elements in problem. More...
 
BitRefLeveltagBitRefLevel
 BitRef level of finite elements in problem. More...
 
BitRefLeveltagMaskBitRefLevel
 BItRefMask of elements in problem. More...
 
DofIdx nbDofsRow
 Global number of DOFs in row. More...
 
DofIdx nbDofsCol
 Global number of DOFs in col. More...
 
DofIdx nbLocDofsRow
 Local number of DOFs in row. More...
 
DofIdx nbLocDofsCol
 Local number of DOFs in colIs. More...
 
DofIdx nbGhostDofsRow
 Number of ghost DOFs in row. More...
 
DofIdx nbGhostDofsCol
 Number of ghost DOFs in col. More...
 
boost::shared_ptr< NumeredDofEntity_multiIndexnumeredDofsRows
 store DOFs on rows for this problem More...
 
boost::shared_ptr< NumeredDofEntity_multiIndexnumeredDofsCols
 store DOFs on columns for this problem More...
 
boost::shared_ptr< NumeredEntFiniteElement_multiIndexnumeredFiniteElements
 store finite elements More...
 
boost::shared_ptr< SubProblemDatasubProblemData
 
boost::shared_ptr< ComposedProblemsDatacomposedProblemsData
 

Private Attributes

boost::shared_ptr< SequenceDofContainersequenceRowDofContainer
 
boost::shared_ptr< SequenceDofContainersequenceColDofContainer
 

Friends

std::ostream & operator<< (std::ostream &os, const Problem &e)
 

Detailed Description

keeps basic data about problem

This is low level structure with information about problem, what elements compose problem and what DOFs are on rows and columns.

Todo:
fix names following name convention
Examples
cell_forces.cpp, EshelbianPlasticity.cpp, field_evaluator.cpp, loop_entities.cpp, lorentz_force.cpp, MagneticElement.hpp, and Remodeling.cpp.

Definition at line 79 of file ProblemsMultiIndices.hpp.

Member Typedef Documentation

◆ SequenceDofContainer

typedef multi_index_container<boost::weak_ptr<std::vector<NumeredDofEntity> >, indexed_by<sequenced<> > > MoFEM::Problem::SequenceDofContainer

Definition at line 751 of file ProblemsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ Problem()

MoFEM::Problem::Problem ( Interface moab,
const EntityHandle  meshset 
)

Definition at line 22 of file ProblemsMultiIndices.cpp.

28  ErrorCode rval;
29  Tag th_ProblemId;
30  rval = moab.tag_get_handle("_ProblemId", th_ProblemId);
32  rval = moab.tag_get_by_ptr(th_ProblemId, &meshset, 1, (const void **)&tagId);
34  Tag th_ProblemName;
35  rval = moab.tag_get_handle("_ProblemName", th_ProblemName);
37  rval = moab.tag_get_by_ptr(th_ProblemName, &meshset, 1,
38  (const void **)&tagName, &tagNameSize);
40  Tag th_ProblemFEId;
41  rval = moab.tag_get_handle("_ProblemFEId", th_ProblemFEId);
43  rval = moab.tag_get_by_ptr(th_ProblemFEId, &meshset, 1,
44  (const void **)&tagBitFEId);
46  Tag th_RefBitLevel;
47  rval = moab.tag_get_handle("_RefBitLevel", th_RefBitLevel);
49  rval = moab.tag_get_by_ptr(th_RefBitLevel, &meshset, 1,
50  (const void **)&tagBitRefLevel);
52  Tag th_RefBitLevel_Mask;
53  rval = moab.tag_get_handle("_RefBitLevelMask", th_RefBitLevel_Mask);
55  rval = moab.tag_get_by_ptr(th_RefBitLevel_Mask, &meshset, 1,
56  (const void **)&tagMaskBitRefLevel);
58 }
int tagNameSize
Size of problem name.
BitProblemId * tagId
Unique problem ID.
const char * tagName
Problem name.
#define MOAB_THROW(a)
Check error code of MoAB function and throw MoFEM exception.
Definition: definitions.h:601
BitFEId * tagBitFEId
IDs of finite elements in problem.
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:84
multi_index_container< boost::shared_ptr< NumeredEntFiniteElement >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, UId, &NumeredEntFiniteElement::getGlobalUniqueId > >, ordered_non_unique< tag< Part_mi_tag >, member< NumeredEntFiniteElement, unsigned int, &NumeredEntFiniteElement::part > >, ordered_non_unique< tag< FiniteElement_name_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, EntityHandle, &NumeredEntFiniteElement::getEnt > >, ordered_non_unique< tag< Composite_Name_And_Ent_mi_tag >, composite_key< NumeredEntFiniteElement, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, EntityHandle, &NumeredEntFiniteElement::getEnt > > >, ordered_non_unique< tag< Composite_Name_And_Part_mi_tag >, composite_key< NumeredEntFiniteElement, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef >, member< NumeredEntFiniteElement, unsigned int, &NumeredEntFiniteElement::part > > > > > NumeredEntFiniteElement_multiIndex
MultiIndex for entities for NumeredEntFiniteElement.
BitRefLevel * tagMaskBitRefLevel
BItRefMask of elements in problem.
BitRefLevel * tagBitRefLevel
BitRef level of finite elements in problem.
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem
boost::shared_ptr< SequenceDofContainer > sequenceColDofContainer
boost::shared_ptr< SequenceDofContainer > sequenceRowDofContainer
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem
multi_index_container< boost::weak_ptr< std::vector< NumeredDofEntity > >, indexed_by< sequenced<> > > SequenceDofContainer
multi_index_container< boost::shared_ptr< NumeredDofEntity >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, const UId &, &NumeredDofEntity::getGlobalUniqueId > >, ordered_non_unique< tag< Unique_Ent_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, const UId &, &NumeredDofEntity::getEntGlobalUniqueId > >, ordered_non_unique< tag< Part_mi_tag >, member< NumeredDofEntity, unsigned int, &NumeredDofEntity::pArt > >, ordered_non_unique< tag< Idx_mi_tag >, member< NumeredDofEntity, DofIdx, &NumeredDofEntity::dofIdx > >, ordered_non_unique< tag< FieldName_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_Field, boost::string_ref, &NumeredDofEntity::getNameRef > >, ordered_non_unique< tag< PetscGlobalIdx_mi_tag >, member< NumeredDofEntity, DofIdx, &NumeredDofEntity::petscGloablDofIdx > >, ordered_non_unique< tag< PetscLocalIdx_mi_tag >, member< NumeredDofEntity, DofIdx, &NumeredDofEntity::petscLocalDofIdx > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, EntityHandle, &NumeredDofEntity::getEnt > >, ordered_non_unique< tag< Composite_Name_And_Ent_And_EntDofIdx_mi_tag >, composite_key< NumeredDofEntity, const_mem_fun< NumeredDofEntity::interface_type_Field, boost::string_ref, &NumeredDofEntity::getNameRef >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, EntityHandle, &NumeredDofEntity::getEnt >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, DofIdx, &NumeredDofEntity::getEntDofIdx > > >, ordered_non_unique< tag< Composite_Name_And_Part_mi_tag >, composite_key< NumeredDofEntity, const_mem_fun< NumeredDofEntity::interface_type_Field, boost::string_ref, &NumeredDofEntity::getNameRef >, member< NumeredDofEntity, unsigned int, &NumeredDofEntity::pArt > > >, ordered_non_unique< tag< Composite_Name_Ent_And_Part_mi_tag >, composite_key< NumeredDofEntity, const_mem_fun< NumeredDofEntity::interface_type_Field, boost::string_ref, &NumeredDofEntity::getNameRef >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, EntityHandle, &NumeredDofEntity::getEnt >, member< NumeredDofEntity, unsigned int, &NumeredDofEntity::pArt > > > > > NumeredDofEntity_multiIndex
MultiIndex container keeps NumeredDofEntity.

◆ ~Problem()

MoFEM::Problem::~Problem ( )
virtual

Definition at line 60 of file ProblemsMultiIndices.cpp.

60 {}

Member Function Documentation

◆ getBitFEId()

BitFEId MoFEM::Problem::getBitFEId ( ) const

Definition at line 68 of file ProblemsMultiIndices.cpp.

68 { return *tagBitFEId; }
BitFEId * tagBitFEId
IDs of finite elements in problem.

◆ getBitRefLevel()

BitRefLevel MoFEM::Problem::getBitRefLevel ( ) const

Definition at line 683 of file ProblemsMultiIndices.hpp.

683 { return *tagBitRefLevel; }
BitRefLevel * tagBitRefLevel
BitRef level of finite elements in problem.

◆ getColDofsByPetscGlobalDofIdx()

MoFEMErrorCode MoFEM::Problem::getColDofsByPetscGlobalDofIdx ( DofIdx  idx,
const NumeredDofEntity **  dof_ptr 
) const

Definition at line 84 of file ProblemsMultiIndices.cpp.

85  {
87  NumeredDofEntity_multiIndex::index<PetscGlobalIdx_mi_tag>::type::iterator dit;
88  dit = numeredDofsCols->get<PetscGlobalIdx_mi_tag>().find(idx);
89  if (dit == numeredDofsCols->get<PetscGlobalIdx_mi_tag>().end()) {
90  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_FOUND, "row dof <%d> not found", idx);
91  }
92  *dof_ptr = &*(*dit);
94 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:500
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:507
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getColDofsSequence()

boost::shared_ptr<SequenceDofContainer>& MoFEM::Problem::getColDofsSequence ( ) const

Get reference to sequence data numbered dof container.

In sequence data container data are physically stored. The purpose of this is to allocate NumeredDofEntity data in bulk, having only one allocation instead each time entity is inserted. That makes code efficient.

The vector in sequence is destroyed if last entity inside that vector is destroyed. All MoFEM::NumeredDofEntity have aliased shared_ptr which points to the vector.

Returns
MoFEM::Problem::SequenceDofContainer

Definition at line 785 of file ProblemsMultiIndices.hpp.

785  {
787  }
boost::shared_ptr< SequenceDofContainer > sequenceColDofContainer

◆ getComposedProblemsData()

boost::shared_ptr<ComposedProblemsData>& MoFEM::Problem::getComposedProblemsData ( ) const

Het composed problems data structure.

Definition at line 224 of file ProblemsMultiIndices.hpp.

224  {
225  return composedProblemsData;
226  }
boost::shared_ptr< ComposedProblemsData > composedProblemsData

◆ getDofByNameEntAndEntDofIdx()

MoFEMErrorCode MoFEM::Problem::getDofByNameEntAndEntDofIdx ( const string  name,
const EntityHandle  ent,
const int  ent_dof_idx,
const RowColData  row_or_col,
boost::shared_ptr< NumeredDofEntity > &  dof_ptr 
) const

get DOFs from problem

Note that ent_dof_idx is not coefficient number, is local number of DOFs on the entity. The coefficient number and local index of DOFs or entity are the same on vertices and H1 approximation.

Parameters
namefield name
ententity handle
ent_dof_idxindex of DOFs on entity
row_or_colROW or COL
dof_ptrshared pointer to DOFs if found
Returns
error code
Examples
cell_forces.cpp.

Definition at line 131 of file ProblemsMultiIndices.cpp.

134  {
136  decltype(numeredDofsRows) numered_dofs;
137  switch (row_or_col) {
138  case ROW:
139  if (!numeredDofsRows) {
140  SETERRQ(PETSC_COMM_SELF, MOFEM_INVALID_DATA,
141  "Row numbered index in problem not allocated");
142  }
143  numered_dofs = numeredDofsRows;
144  break;
145  case COL:
146  if (!numeredDofsCols) {
147  SETERRQ(PETSC_COMM_SELF, MOFEM_INVALID_DATA,
148  "Col numbered index in problem not allocated");
149  }
150  numered_dofs = numeredDofsCols;
151  break;
152  default:
153  SETERRQ(PETSC_COMM_SELF, MOFEM_INVALID_DATA,
154  "Only ROW and COL is possible for 3rd argument");
155  }
156  auto it =
157  numered_dofs->get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>().find(
158  boost::make_tuple(name, ent, ent_dof_idx));
159  if (it !=
160  numered_dofs->get<Composite_Name_And_Ent_And_EntDofIdx_mi_tag>().end()) {
161  dof_ptr = *it;
162  } else {
163  dof_ptr = boost::shared_ptr<NumeredDofEntity>();
164  }
166 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getId()

BitProblemId MoFEM::Problem::getId ( ) const

Definition at line 670 of file ProblemsMultiIndices.hpp.

670 { return *((BitProblemId *)tagId); }
BitProblemId * tagId
Unique problem ID.
std::bitset< BITPROBLEMID_SIZE > BitProblemId
Problem Id.
Definition: Types.hpp:55

◆ getMaskBitRefLevel()

BitRefLevel MoFEM::Problem::getMaskBitRefLevel ( ) const

Definition at line 684 of file ProblemsMultiIndices.hpp.

684 { return *tagMaskBitRefLevel; }
BitRefLevel * tagMaskBitRefLevel
BItRefMask of elements in problem.

◆ getName()

std::string MoFEM::Problem::getName ( ) const
Examples
EshelbianPlasticity.cpp, field_evaluator.cpp, lorentz_force.cpp, and Remodeling.cpp.

Definition at line 672 of file ProblemsMultiIndices.hpp.

672  {
673  return std::string((char *)tagName, tagNameSize);
674  }
int tagNameSize
Size of problem name.
const char * tagName
Problem name.

◆ getNbDofsCol()

DofIdx MoFEM::Problem::getNbDofsCol ( ) const

Definition at line 677 of file ProblemsMultiIndices.hpp.

677 { return nbDofsCol; }
DofIdx nbDofsCol
Global number of DOFs in col.

◆ getNbDofsRow()

DofIdx MoFEM::Problem::getNbDofsRow ( ) const

Definition at line 676 of file ProblemsMultiIndices.hpp.

676 { return nbDofsRow; }
DofIdx nbDofsRow
Global number of DOFs in row.

◆ getNbGhostDofsCol()

DofIdx MoFEM::Problem::getNbGhostDofsCol ( ) const

Definition at line 681 of file ProblemsMultiIndices.hpp.

681 { return nbGhostDofsCol; }
DofIdx nbGhostDofsCol
Number of ghost DOFs in col.

◆ getNbGhostDofsRow()

DofIdx MoFEM::Problem::getNbGhostDofsRow ( ) const

Definition at line 680 of file ProblemsMultiIndices.hpp.

680 { return nbGhostDofsRow; }
DofIdx nbGhostDofsRow
Number of ghost DOFs in row.

◆ getNbLocalDofsCol()

DofIdx MoFEM::Problem::getNbLocalDofsCol ( ) const

Definition at line 679 of file ProblemsMultiIndices.hpp.

679 { return nbLocDofsCol; }
DofIdx nbLocDofsCol
Local number of DOFs in colIs.

◆ getNbLocalDofsRow()

DofIdx MoFEM::Problem::getNbLocalDofsRow ( ) const

Definition at line 678 of file ProblemsMultiIndices.hpp.

678 { return nbLocDofsRow; }
DofIdx nbLocDofsRow
Local number of DOFs in row.

◆ getNumberOfElementsByNameAndPart()

MoFEMErrorCode MoFEM::Problem::getNumberOfElementsByNameAndPart ( MPI_Comm  comm,
const std::string  name,
PetscLayout *  layout 
) const

Get number of finite elements by name on processors.

Size retuned IS is equal to size of processors.

What PetscLayout see, http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/IS/index.html

Example of usage for layout

PetscInt rstart, rend;
ierr = PetscLayoutGetRange(layout, &rstart, &rend); CHKERRG(ierr);
int global_size;
ierr = PetscLayoutGetSize(layout,&global_size); CHKERRG(ierr);
Parameters
commCommunicator
nameFinite element name
layoutGet number of elements on each processor
Returns
error code

Definition at line 97 of file ProblemsMultiIndices.cpp.

98  {
100  int size, rank;
101  MPI_Comm_size(comm, &size);
102  MPI_Comm_rank(comm, &rank);
103  CHKERR PetscLayoutCreate(comm, layout);
104  CHKERR PetscLayoutSetBlockSize(*layout, 1);
105  const NumeredEntFiniteElementbyNameAndPart &fe_by_name_and_part =
106  numeredFiniteElements->get<Composite_Name_And_Part_mi_tag>();
107  int nb_elems;
108  nb_elems = fe_by_name_and_part.count(boost::make_tuple(name, rank));
109  CHKERR PetscLayoutSetLocalSize(*layout, nb_elems);
110  CHKERR PetscLayoutSetUp(*layout);
112 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
NumeredEntFiniteElement_multiIndex::index< Composite_Name_And_Part_mi_tag >::type NumeredEntFiniteElementbyNameAndPart
Entity finite element multi-index by finite element name and partition.
#define CHKERR
Inline error check.
Definition: definitions.h:595
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements

◆ getNumberOfElementsByPart()

MoFEMErrorCode MoFEM::Problem::getNumberOfElementsByPart ( MPI_Comm  comm,
PetscLayout *  layout 
) const

Get number of finite elements on processors.

Size retuned IS is equal to size of processors.

What PetscLayout see, http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/IS/index.html

Example of usage for layout

PetscInt rstart, rend;
ierr = PetscLayoutGetRange(layout, &rstart, &rend); CHKERRG(ierr);
int global_size;
ierr = PetscLayoutGetSize(layout,&global_size); CHKERRG(ierr);
Parameters
commCommunicator
layoutGet number of elements on each processor
Returns
error code

Definition at line 114 of file ProblemsMultiIndices.cpp.

115  {
117  int size, rank;
118  MPI_Comm_size(comm, &size);
119  MPI_Comm_rank(comm, &rank);
120  CHKERR PetscLayoutCreate(comm, layout);
121  CHKERR PetscLayoutSetBlockSize(*layout, 1);
122  typedef NumeredEntFiniteElement_multiIndex::index<Part_mi_tag>::type FeByPart;
123  const FeByPart &fe_by_part = numeredFiniteElements->get<Part_mi_tag>();
124  int nb_elems;
125  nb_elems = fe_by_part.count(rank);
126  CHKERR PetscLayoutSetLocalSize(*layout, nb_elems);
127  CHKERR PetscLayoutSetUp(*layout);
129 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
#define CHKERR
Inline error check.
Definition: definitions.h:595
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements

◆ getNumeredDofsCols()

const boost::shared_ptr<NumeredDofEntity_multiIndex>& MoFEM::Problem::getNumeredDofsCols ( ) const

get access to numeredDofsCols storing DOFs on cols

Definition at line 116 of file ProblemsMultiIndices.hpp.

116  {
117  return numeredDofsCols;
118  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsBegin() [1/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsColsBegin ( ) const

get begin iterator for numeredDofsCols (insted you can use #_IT_NUMEREDDOFMOFEMENTITY_COL_FOR_LOOP_ for loops)

Definition at line 322 of file ProblemsMultiIndices.hpp.

322  {
323  return numeredDofsCols->begin();
324  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsBegin() [2/4]

NumeredDofEntityByFieldName::iterator MoFEM::Problem::getNumeredDofsColsBegin ( const std::string &  name) const

get begin iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_NAME_FOR_LOOP_ for loops)

Definition at line 508 of file ProblemsMultiIndices.hpp.

508  {
509  return numeredDofsCols->get<FieldName_mi_tag>().lower_bound(name);
510  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsBegin() [3/4]

NumeredDofEntityByNameEntAndPart::iterator MoFEM::Problem::getNumeredDofsColsBegin ( const std::string &  name,
const EntityHandle  ent,
const int  part 
) const

get begin iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_NAME_ENT_PART_FOR_LOOP_ for loops)

Definition at line 578 of file ProblemsMultiIndices.hpp.

579  {
580  return numeredDofsCols->get<Composite_Name_Ent_And_Part_mi_tag>()
581  .lower_bound(boost::make_tuple(name, ent, part));
582  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsBegin() [4/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsColsBegin ( const int  part) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_COL_BY_PART_FOR_LOOP_ for loops)

Definition at line 653 of file ProblemsMultiIndices.hpp.

653  {
654  return numeredDofsRows->get<Unique_mi_tag>().lower_bound(
656  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem
static UId getGlobalUniqueIdCalculate_Low_Proc(const int owner_proc)

◆ getNumeredDofsColsByEntBegin()

NumeredDofEntityByEnt::iterator MoFEM::Problem::getNumeredDofsColsByEntBegin ( const EntityHandle  ent) const

get begin iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_ENT_FOR_LOOP_ for loops)

Definition at line 446 of file ProblemsMultiIndices.hpp.

446  {
447  return numeredDofsCols->get<Ent_mi_tag>().lower_bound(ent);
448  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsByEntEnd()

NumeredDofEntityByEnt::iterator MoFEM::Problem::getNumeredDofsColsByEntEnd ( const EntityHandle  ent) const

get end iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_ENT_FOR_LOOP_ for loops)

Definition at line 453 of file ProblemsMultiIndices.hpp.

453  {
454  return numeredDofsCols->get<Ent_mi_tag>().upper_bound(ent);
455  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsByLocIdxBegin()

NumeredDofEntityByLocalIdx::iterator MoFEM::Problem::getNumeredDofsColsByLocIdxBegin ( const DofIdx  locidx) const

get begin iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_FOR_LOOP_ for loops)

Definition at line 384 of file ProblemsMultiIndices.hpp.

384  {
385  return numeredDofsCols->get<PetscLocalIdx_mi_tag>().lower_bound(locidx);
386  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsByLocIdxEnd()

NumeredDofEntityByLocalIdx::iterator MoFEM::Problem::getNumeredDofsColsByLocIdxEnd ( const DofIdx  locidx) const

get end iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_FOR_LOOP_ for loops)

Definition at line 391 of file ProblemsMultiIndices.hpp.

391  {
392  return numeredDofsCols->get<PetscLocalIdx_mi_tag>().upper_bound(locidx);
393  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsEnd() [1/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsColsEnd ( ) const

get end iterator for numeredDofsCols (insted you can use #_IT_NUMEREDDOFMOFEMENTITY_COL_FOR_LOOP_ for loops)

Definition at line 328 of file ProblemsMultiIndices.hpp.

328  {
329  return numeredDofsCols->end();
330  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsEnd() [2/4]

NumeredDofEntityByFieldName::iterator MoFEM::Problem::getNumeredDofsColsEnd ( const std::string &  name) const

get end iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_NAME_FOR_LOOP_ for loops)

Definition at line 515 of file ProblemsMultiIndices.hpp.

515  {
516  return numeredDofsCols->get<FieldName_mi_tag>().upper_bound(name);
517  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsEnd() [3/4]

NumeredDofEntityByNameEntAndPart::iterator MoFEM::Problem::getNumeredDofsColsEnd ( const std::string &  name,
const EntityHandle  ent,
const int  part 
) const

get end iterator for numeredDofsCols (insted you can use _IT_NUMEREDDOF_COL_BY_NAME_ENT_PART_FOR_LOOP_ for loops)

Definition at line 587 of file ProblemsMultiIndices.hpp.

588  {
589  return numeredDofsCols->get<Composite_Name_Ent_And_Part_mi_tag>()
590  .upper_bound(boost::make_tuple(name, ent, part));
591  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsCols
store DOFs on columns for this problem

◆ getNumeredDofsColsEnd() [4/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsColsEnd ( const int  part) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_COL_BY_PART_FOR_LOOP_ for loops)

Definition at line 661 of file ProblemsMultiIndices.hpp.

661  {
662  return numeredDofsRows->get<Unique_mi_tag>().upper_bound(
664  }
static UId getGlobalUniqueIdCalculate_Hi_Proc(const int owner_proc)
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRows()

const boost::shared_ptr<NumeredDofEntity_multiIndex>& MoFEM::Problem::getNumeredDofsRows ( ) const

get access to numeredDofsRows storing DOFs on rows

Definition at line 108 of file ProblemsMultiIndices.hpp.

108  {
109  return numeredDofsRows;
110  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsBegin() [1/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsRowsBegin ( ) const

get begin iterator for numeredDofsRows (insted you can use #_IT_NUMEREDDOFMOFEMENTITY_ROW_FOR_LOOP_ for loops)

Definition at line 310 of file ProblemsMultiIndices.hpp.

310  {
311  return numeredDofsRows->begin();
312  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsBegin() [2/4]

NumeredDofEntityByFieldName::iterator MoFEM::Problem::getNumeredDofsRowsBegin ( const std::string &  name) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_NAME_FOR_LOOP_ for loops)

Definition at line 494 of file ProblemsMultiIndices.hpp.

494  {
495  return numeredDofsRows->get<FieldName_mi_tag>().lower_bound(name);
496  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsBegin() [3/4]

NumeredDofEntityByNameEntAndPart::iterator MoFEM::Problem::getNumeredDofsRowsBegin ( const std::string &  name,
const EntityHandle  ent,
const int  part 
) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_NAME_ENT_PART_FOR_LOOP_ for loops)

Definition at line 560 of file ProblemsMultiIndices.hpp.

561  {
562  return numeredDofsRows->get<Composite_Name_Ent_And_Part_mi_tag>()
563  .lower_bound(boost::make_tuple(name, ent, part));
564  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsBegin() [4/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsRowsBegin ( const int  part) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_OWNPROC_FOR_LOOP_ for loops)

Definition at line 616 of file ProblemsMultiIndices.hpp.

616  {
617  return numeredDofsRows->get<Unique_mi_tag>().lower_bound(
619  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem
static UId getGlobalUniqueIdCalculate_Low_Proc(const int owner_proc)

◆ getNumeredDofsRowsByEntBegin()

NumeredDofEntityByEnt::iterator MoFEM::Problem::getNumeredDofsRowsByEntBegin ( const EntityHandle  ent) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_ENT_FOR_LOOP_ for loops)

Definition at line 432 of file ProblemsMultiIndices.hpp.

432  {
433  return numeredDofsRows->get<Ent_mi_tag>().lower_bound(ent);
434  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsByEntEnd()

NumeredDofEntityByEnt::iterator MoFEM::Problem::getNumeredDofsRowsByEntEnd ( const EntityHandle  ent) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_ENT_FOR_LOOP_ for loops)

Definition at line 439 of file ProblemsMultiIndices.hpp.

439  {
440  return numeredDofsRows->get<Ent_mi_tag>().upper_bound(ent);
441  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsByLocIdxBegin()

NumeredDofEntityByLocalIdx::iterator MoFEM::Problem::getNumeredDofsRowsByLocIdxBegin ( const DofIdx  locidx) const

get begin iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_FOR_LOOP_ for loops)

Definition at line 370 of file ProblemsMultiIndices.hpp.

370  {
371  return numeredDofsRows->get<PetscLocalIdx_mi_tag>().lower_bound(locidx);
372  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsByLocIdxEnd()

NumeredDofEntityByLocalIdx::iterator MoFEM::Problem::getNumeredDofsRowsByLocIdxEnd ( const DofIdx  locidx) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_FOR_LOOP_ for loops)

Definition at line 377 of file ProblemsMultiIndices.hpp.

377  {
378  return numeredDofsRows->get<PetscLocalIdx_mi_tag>().upper_bound(locidx);
379  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsEnd() [1/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsRowsEnd ( ) const

get end iterator for numeredDofsRows (insted you can use #_IT_NUMEREDDOFMOFEMENTITY_ROW_FOR_LOOP_ for loops)

Definition at line 316 of file ProblemsMultiIndices.hpp.

316  {
317  return numeredDofsRows->end();
318  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsEnd() [2/4]

NumeredDofEntityByFieldName::iterator MoFEM::Problem::getNumeredDofsRowsEnd ( const std::string &  name) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_NAME_FOR_LOOP_ for loops)

Definition at line 501 of file ProblemsMultiIndices.hpp.

501  {
502  return numeredDofsRows->get<FieldName_mi_tag>().upper_bound(name);
503  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsEnd() [3/4]

NumeredDofEntityByNameEntAndPart::iterator MoFEM::Problem::getNumeredDofsRowsEnd ( const std::string &  name,
const EntityHandle  ent,
const int  part 
) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_NAME_ENT_PART_FOR_LOOP_ for loops)

Definition at line 569 of file ProblemsMultiIndices.hpp.

570  {
571  return numeredDofsRows->get<Composite_Name_Ent_And_Part_mi_tag>()
572  .upper_bound(boost::make_tuple(name, ent, part));
573  }
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredDofsRowsEnd() [4/4]

NumeredDofEntity_multiIndex::iterator MoFEM::Problem::getNumeredDofsRowsEnd ( const int  part) const

get end iterator for numeredDofsRows (insted you can use _IT_NUMEREDDOF_ROW_BY_OWNPROC_FOR_LOOP_ for loops)

Definition at line 624 of file ProblemsMultiIndices.hpp.

624  {
625  return numeredDofsRows->get<Unique_mi_tag>().upper_bound(
627  }
static UId getGlobalUniqueIdCalculate_Hi_Proc(const int owner_proc)
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getNumeredFEsBegin()

NumeredEntFiniteElementbyName::iterator MoFEM::Problem::getNumeredFEsBegin ( std::string  fe_name) const

Definition at line 263 of file ProblemsMultiIndices.hpp.

263  {
264  return numeredFiniteElements->get<FiniteElement_name_mi_tag>().lower_bound(
265  fe_name);
266  }
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements

◆ getNumeredFEsEnd()

NumeredEntFiniteElementbyName::iterator MoFEM::Problem::getNumeredFEsEnd ( std::string  fe_name) const

Definition at line 269 of file ProblemsMultiIndices.hpp.

269  {
270  return numeredFiniteElements->get<FiniteElement_name_mi_tag>().upper_bound(
271  fe_name);
272  }
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements

◆ getNumeredFiniteElements()

const boost::shared_ptr<NumeredEntFiniteElement_multiIndex>& MoFEM::Problem::getNumeredFiniteElements ( ) const

get access to reference for multi-index storing finite elements

Definition at line 124 of file ProblemsMultiIndices.hpp.

124  {
125  return numeredFiniteElements;
126  }
boost::shared_ptr< NumeredEntFiniteElement_multiIndex > numeredFiniteElements
store finite elements

◆ getRowDofsByPetscGlobalDofIdx()

MoFEMErrorCode MoFEM::Problem::getRowDofsByPetscGlobalDofIdx ( DofIdx  idx,
const NumeredDofEntity **  dof_ptr 
) const

Definition at line 71 of file ProblemsMultiIndices.cpp.

72  {
74  NumeredDofEntity_multiIndex::index<PetscGlobalIdx_mi_tag>::type::iterator dit;
75  dit = numeredDofsRows->get<PetscGlobalIdx_mi_tag>().find(idx);
76  if (dit == numeredDofsRows->get<PetscGlobalIdx_mi_tag>().end()) {
77  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_FOUND, "row dof <%d> not found", idx);
78  }
79  *dof_ptr = &*(*dit);
81 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:500
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:507
boost::shared_ptr< NumeredDofEntity_multiIndex > numeredDofsRows
store DOFs on rows for this problem

◆ getRowDofsSequence()

boost::shared_ptr<SequenceDofContainer>& MoFEM::Problem::getRowDofsSequence ( ) const

Get reference to sequence data numbered dof container.

In sequence data container data are physically stored. The purpose of this is to allocate NumeredDofEntity data in bulk, having only one allocation instead each time entity is inserted. That makes code efficient.

The vector in sequence is destroyed if last entity inside that vector is destroyed. All MoFEM::NumeredDofEntity have aliased shared_ptr which points to the vector.

Returns
MoFEM::Problem::SequenceDofContainer

Definition at line 767 of file ProblemsMultiIndices.hpp.

767  {
769  }
boost::shared_ptr< SequenceDofContainer > sequenceRowDofContainer

◆ getSubData()

boost::shared_ptr<SubProblemData>& MoFEM::Problem::getSubData ( ) const

Get main problem of sub-problem is.

Returns
sub problem data structure
Examples
cell_forces.cpp.

Definition at line 211 of file ProblemsMultiIndices.hpp.

211  {
212  return subProblemData;
213  }
boost::shared_ptr< SubProblemData > subProblemData

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Problem e 
)
friend

Definition at line 62 of file ProblemsMultiIndices.cpp.

62  {
63  os << "problem id " << e.getId() << " FiniteElement id " << e.getBitFEId()
64  << " name " << e.getName();
65  return os;
66 }

Member Data Documentation

◆ composedProblemsData

boost::shared_ptr<ComposedProblemsData> MoFEM::Problem::composedProblemsData
mutable

Pointer to data structure from which this problem is composed

Definition at line 218 of file ProblemsMultiIndices.hpp.

◆ meshset

EntityHandle MoFEM::Problem::meshset

Problem meshset (on tag of this meshset all data related to problem are stored)

Definition at line 81 of file ProblemsMultiIndices.hpp.

◆ nbDofsCol

DofIdx MoFEM::Problem::nbDofsCol
mutable

Global number of DOFs in col.

Definition at line 91 of file ProblemsMultiIndices.hpp.

◆ nbDofsRow

DofIdx MoFEM::Problem::nbDofsRow
mutable

Global number of DOFs in row.

Definition at line 90 of file ProblemsMultiIndices.hpp.

◆ nbGhostDofsCol

DofIdx MoFEM::Problem::nbGhostDofsCol
mutable

Number of ghost DOFs in col.

Definition at line 95 of file ProblemsMultiIndices.hpp.

◆ nbGhostDofsRow

DofIdx MoFEM::Problem::nbGhostDofsRow
mutable

Number of ghost DOFs in row.

Definition at line 94 of file ProblemsMultiIndices.hpp.

◆ nbLocDofsCol

DofIdx MoFEM::Problem::nbLocDofsCol
mutable

Local number of DOFs in colIs.

Definition at line 93 of file ProblemsMultiIndices.hpp.

◆ nbLocDofsRow

DofIdx MoFEM::Problem::nbLocDofsRow
mutable

Local number of DOFs in row.

Definition at line 92 of file ProblemsMultiIndices.hpp.

◆ numeredDofsCols

boost::shared_ptr<NumeredDofEntity_multiIndex> MoFEM::Problem::numeredDofsCols
mutable

store DOFs on columns for this problem

Definition at line 100 of file ProblemsMultiIndices.hpp.

◆ numeredDofsRows

boost::shared_ptr<NumeredDofEntity_multiIndex> MoFEM::Problem::numeredDofsRows
mutable

store DOFs on rows for this problem

Definition at line 98 of file ProblemsMultiIndices.hpp.

◆ numeredFiniteElements

boost::shared_ptr<NumeredEntFiniteElement_multiIndex> MoFEM::Problem::numeredFiniteElements
mutable

store finite elements

Definition at line 102 of file ProblemsMultiIndices.hpp.

◆ sequenceColDofContainer

boost::shared_ptr<SequenceDofContainer> MoFEM::Problem::sequenceColDofContainer
mutableprivate

Definition at line 792 of file ProblemsMultiIndices.hpp.

◆ sequenceRowDofContainer

boost::shared_ptr<SequenceDofContainer> MoFEM::Problem::sequenceRowDofContainer
mutableprivate

Definition at line 791 of file ProblemsMultiIndices.hpp.

◆ subProblemData

boost::shared_ptr<SubProblemData> MoFEM::Problem::subProblemData
mutable

Pointer to data structure. This pointer has allocated data only for sub problems.

Examples
EshelbianPlasticity.cpp.

Definition at line 205 of file ProblemsMultiIndices.hpp.

◆ tagBitFEId

BitFEId* MoFEM::Problem::tagBitFEId

IDs of finite elements in problem.

Definition at line 86 of file ProblemsMultiIndices.hpp.

◆ tagBitRefLevel

BitRefLevel* MoFEM::Problem::tagBitRefLevel

BitRef level of finite elements in problem.

Definition at line 87 of file ProblemsMultiIndices.hpp.

◆ tagId

BitProblemId* MoFEM::Problem::tagId

Unique problem ID.

Definition at line 83 of file ProblemsMultiIndices.hpp.

◆ tagMaskBitRefLevel

BitRefLevel* MoFEM::Problem::tagMaskBitRefLevel

BItRefMask of elements in problem.

Definition at line 88 of file ProblemsMultiIndices.hpp.

◆ tagName

const char* MoFEM::Problem::tagName

Problem name.

Definition at line 84 of file ProblemsMultiIndices.hpp.

◆ tagNameSize

int MoFEM::Problem::tagNameSize

Size of problem name.

Definition at line 85 of file ProblemsMultiIndices.hpp.


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