v0.8.15
Public Member Functions | Public Attributes | List of all members
MoFEM::ComposedProblemsData Struct Reference

#include <src/multi_indices/ProblemsMultiIndices.hpp>

Public Member Functions

MoFEMErrorCode getRowIs (IS *is, const unsigned int pp) const
 
MoFEMErrorCode getColIs (IS *is, const unsigned int pp) const
 
virtual ~ComposedProblemsData ()
 

Public Attributes

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

Detailed Description

Data structure created when composite problem is created

Definition at line 30 of file ProblemsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ ~ComposedProblemsData()

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

Definition at line 60 of file ProblemsMultiIndices.hpp.

60  {
61  for (unsigned int ii = 0; ii != rowIs.size(); ii++) {
62  ISDestroy(&rowIs[ii]);
63  }
64  for (unsigned int jj = 0; jj != colIs.size(); jj++) {
65  ISDestroy(&colIs[jj]);
66  }
67  }

Member Function Documentation

◆ getColIs()

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

Definition at line 49 of file ProblemsMultiIndices.hpp.

49  {
51  PetscObjectReference((PetscObject)colIs[pp]);
52  if (pp <= colIs.size()) {
53  SETERRQ1(PETSC_COMM_WORLD, MOFEM_INVALID_DATA,
54  "Exceed size of array pp<%d", colIs.size());
55  }
56  *is = colIs[pp];
58  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490

◆ getRowIs()

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

Definition at line 38 of file ProblemsMultiIndices.hpp.

38  {
40  PetscObjectReference((PetscObject)rowIs[pp]);
41  if (pp <= rowIs.size()) {
42  SETERRQ1(PETSC_COMM_WORLD, MOFEM_INVALID_DATA,
43  "Exceed size of array pp<%d", rowIs.size());
44  }
45  *is = rowIs[pp];
47  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490

Member Data Documentation

◆ colIs

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

Definition at line 36 of file ProblemsMultiIndices.hpp.

◆ colProblemsAdd

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

Definition at line 33 of file ProblemsMultiIndices.hpp.

◆ rowIs

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

Definition at line 35 of file ProblemsMultiIndices.hpp.

◆ rowProblemsAdd

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

Definition at line 32 of file ProblemsMultiIndices.hpp.


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