v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MoFEM::ComposedProblemsData Struct Reference

#include <src/multi_indices/ProblemsMultiIndices.hpp>

Collaboration diagram for MoFEM::ComposedProblemsData:
[legend]

Public Member Functions

MoFEMErrorCode getRowIs (IS *is, const unsigned int pp) const
 Get the col sub dm IS. More...
 
MoFEMErrorCode getColIs (IS *is, const unsigned int pp) const
 Get the Col sub dm IS object. More...
 
virtual ~ComposedProblemsData ()=default
 

Public Attributes

std::vector< const Problem * > rowProblemsAdd
 
std::vector< const Problem * > colProblemsAdd
 
std::vector< SmartPetscObj< IS > > rowIs
 
std::vector< SmartPetscObj< IS > > colIs
 

Detailed Description

Data structure created when composite problem is created

Definition at line 16 of file ProblemsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ ~ComposedProblemsData()

virtual MoFEM::ComposedProblemsData::~ComposedProblemsData ( )
virtualdefault

Member Function Documentation

◆ getColIs()

MoFEMErrorCode MoFEM::ComposedProblemsData::getColIs ( IS *  is,
const unsigned int  pp 
) const
inline

Get the Col sub dm IS object.

Parameters
issub problem IS
ppproblem number
Returns
MoFEMErrorCode

Definition at line 756 of file ProblemsMultiIndices.hpp.

756 {
758 if (pp <= colIs.size()) {
759 SETERRQ1(PETSC_COMM_WORLD, MOFEM_INVALID_DATA, "Exceed size of array pp<%d",
760 colIs.size());
761 }
762 *is = colIs[pp].get();
763 PetscObjectReference((PetscObject)(*is));
765}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
@ MOFEM_INVALID_DATA
Definition: definitions.h:36
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
std::vector< SmartPetscObj< IS > > colIs

◆ getRowIs()

MoFEMErrorCode MoFEM::ComposedProblemsData::getRowIs ( IS *  is,
const unsigned int  pp 
) const
inline

Get the col sub dm IS.

Parameters
issub problem IS
ppproblem number
Returns
MoFEMErrorCode

Definition at line 744 of file ProblemsMultiIndices.hpp.

744 {
746 if (pp <= rowIs.size()) {
747 SETERRQ1(PETSC_COMM_WORLD, MOFEM_INVALID_DATA, "Exceed size of array pp<%d",
748 rowIs.size());
749 }
750 *is = rowIs[pp].get();
751 PetscObjectReference((PetscObject)(*is));
753}
std::vector< SmartPetscObj< IS > > rowIs

Member Data Documentation

◆ colIs

std::vector<SmartPetscObj<IS> > MoFEM::ComposedProblemsData::colIs

Definition at line 22 of file ProblemsMultiIndices.hpp.

◆ colProblemsAdd

std::vector<const Problem *> MoFEM::ComposedProblemsData::colProblemsAdd

Definition at line 19 of file ProblemsMultiIndices.hpp.

◆ rowIs

std::vector<SmartPetscObj<IS> > MoFEM::ComposedProblemsData::rowIs

Definition at line 21 of file ProblemsMultiIndices.hpp.

◆ rowProblemsAdd

std::vector<const Problem *> MoFEM::ComposedProblemsData::rowProblemsAdd

Definition at line 18 of file ProblemsMultiIndices.hpp.


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