v0.9.0
Public Member Functions | Public Attributes | List of all members
MoFEM::Problem::SubProblemData Struct Reference

Subproblem problem data. More...

#include <src/multi_indices/ProblemsMultiIndices.hpp>

Public Member Functions

MoFEMErrorCode getRowIs (IS *is)
 
MoFEMErrorCode getColIs (IS *is)
 
MoFEMErrorCode getRowMap (AO *ao)
 
MoFEMErrorCode getColMap (AO *ao)
 
 SubProblemData ()
 
virtual ~SubProblemData ()
 

Public Attributes

IS rowIs
 indices of main problem of which sub problem is this More...
 
IS colIs
 indices of main problem of which sub problem is this More...
 
AO rowMap
 mapping form main problem indices to sub-problem indices More...
 
AO colMap
 

Detailed Description

Subproblem problem data.

Definition at line 131 of file ProblemsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ SubProblemData()

MoFEM::Problem::SubProblemData::SubProblemData ( )

Definition at line 186 of file ProblemsMultiIndices.hpp.

187  : rowIs(PETSC_NULL), colIs(PETSC_NULL), rowMap(PETSC_NULL),
188  colMap(PETSC_NULL) {}
IS rowIs
indices of main problem of which sub problem is this
AO rowMap
mapping form main problem indices to sub-problem indices
IS colIs
indices of main problem of which sub problem is this

◆ ~SubProblemData()

virtual MoFEM::Problem::SubProblemData::~SubProblemData ( )
virtual

Definition at line 189 of file ProblemsMultiIndices.hpp.

189  {
190  // int flg;
191  // MPI_Finalized(&flg);
192  // if(!flg) {
193  ISDestroy(&rowIs);
194  ISDestroy(&colIs);
195  AODestroy(&rowMap);
196  AODestroy(&colMap);
197  // }
198  }
IS rowIs
indices of main problem of which sub problem is this
AO rowMap
mapping form main problem indices to sub-problem indices
IS colIs
indices of main problem of which sub problem is this

Member Function Documentation

◆ getColIs()

MoFEMErrorCode MoFEM::Problem::SubProblemData::getColIs ( IS *  is)

get col Is for sub problem

Parameters
iscreate is
Returns
error code

Definition at line 155 of file ProblemsMultiIndices.hpp.

155  {
157  PetscObjectReference((PetscObject)colIs);
158  *is = colIs;
160  };
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
IS colIs
indices of main problem of which sub problem is this
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

◆ getColMap()

MoFEMErrorCode MoFEM::Problem::SubProblemData::getColMap ( AO *  ao)

get col AO mapping for sub problem

Parameters
aoget mapping
Returns
error code

Definition at line 179 of file ProblemsMultiIndices.hpp.

179  {
181  PetscObjectReference((PetscObject)colMap);
182  *ao = colMap;
184  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

◆ getRowIs()

MoFEMErrorCode MoFEM::Problem::SubProblemData::getRowIs ( IS *  is)

get row Is for sub problem

Parameters
iscreate is
Returns
error code

Definition at line 143 of file ProblemsMultiIndices.hpp.

143  {
145  PetscObjectReference((PetscObject)rowIs);
146  *is = rowIs;
148  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
IS rowIs
indices of main problem of which sub problem is this
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

◆ getRowMap()

MoFEMErrorCode MoFEM::Problem::SubProblemData::getRowMap ( AO *  ao)

get row AO mapping for sub problem

Parameters
aoget mapping
Returns
error code

Definition at line 167 of file ProblemsMultiIndices.hpp.

167  {
169  PetscObjectReference((PetscObject)rowMap);
170  *ao = rowMap;
172  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
AO rowMap
mapping form main problem indices to sub-problem indices
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

Member Data Documentation

◆ colIs

IS MoFEM::Problem::SubProblemData::colIs

indices of main problem of which sub problem is this

Definition at line 134 of file ProblemsMultiIndices.hpp.

◆ colMap

AO MoFEM::Problem::SubProblemData::colMap

Definition at line 136 of file ProblemsMultiIndices.hpp.

◆ rowIs

IS MoFEM::Problem::SubProblemData::rowIs

indices of main problem of which sub problem is this

Definition at line 133 of file ProblemsMultiIndices.hpp.

◆ rowMap

AO MoFEM::Problem::SubProblemData::rowMap

mapping form main problem indices to sub-problem indices

Definition at line 135 of file ProblemsMultiIndices.hpp.


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