v0.13.1
Classes | Typedefs | Functions | Variables
child_and_parent.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  ElementsAndOps< DIM >
 
struct  ElementsAndOps< 2 >
 
struct  ElementsAndOps< 3 >
 
struct  ApproxFieldFunction< 1 >
 third order polynomial used for testing More...
 
struct  AtomTest
 
struct  AtomTest::CommonData
 Collected data use d by operator to evaluate errors for the test. More...
 
struct  AtomTest::OpError< 1 >
 
struct  OpCheckGaussCoords< ELE_OP, PARENT_ELE >
 

Typedefs

using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainParentEle = ElementsAndOps< SPACE_DIM >::DomianParentEle
 
using DomainEleOp = DomainEle::UserDataOperator
 Finire element operator type. More...
 
using EntData = EntitiesFieldData::EntData
 
using BoundaryEle = ElementsAndOps< SPACE_DIM >::BoundaryEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using BoundaryParentEle = ElementsAndOps< SPACE_DIM >::BoundaryParentEle
 
using OpDomainMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, FIELD_DIM >
 
using OpDomainSource = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, FIELD_DIM >
 

Functions

int main (int argc, char *argv[])
 [Check results] More...
 

Variables

static char help [] = "...\n\n"
 
constexpr char FIELD_NAME [] = "U"
 
constexpr int FIELD_DIM = 1
 
constexpr int SPACE_DIM = 2
 
boost::shared_ptr< DomainEledomainChildLhs
 [Set up problem] More...
 
boost::shared_ptr< DomainEledomainChildRhs
 

Typedef Documentation

◆ BoundaryEle

Definition at line 53 of file child_and_parent.cpp.

◆ BoundaryEleOp

Examples
PoissonDiscontinousGalerkin.hpp.

Definition at line 54 of file child_and_parent.cpp.

◆ BoundaryParentEle

Definition at line 55 of file child_and_parent.cpp.

◆ DomainEle

Definition at line 48 of file child_and_parent.cpp.

◆ DomainEleOp

◆ DomainParentEle

Definition at line 49 of file child_and_parent.cpp.

◆ EntData

◆ OpDomainMass

Examples
child_and_parent.cpp.

Definition at line 66 of file child_and_parent.cpp.

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, FIELD_DIM>
Examples
child_and_parent.cpp.

Definition at line 68 of file child_and_parent.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

[Check results]

Examples
child_and_parent.cpp.

Definition at line 586 of file child_and_parent.cpp.

586 {
587
588 // Initialisation of MoFEM/PETSc and MOAB data structures
589 MoFEM::Core::Initialize(&argc, &argv, NULL, help);
590
591 try {
592
593 //! [Register MoFEM discrete manager in PETSc]
594 DMType dm_name = "DMMOFEM";
595 CHKERR DMRegister_MoFEM(dm_name);
596 //! [Register MoFEM discrete manager in PETSc
597
598 //! [Create MoAB]
599 moab::Core mb_instance; ///< mesh database
600 moab::Interface &moab = mb_instance; ///< mesh database interface
601 //! [Create MoAB]
602
603 //! [Create MoFEM]
604 MoFEM::Core core(moab); ///< finite element database
605 MoFEM::Interface &m_field = core; ///< finite element database insterface
606 //! [Create MoFEM]
607
608 //! [AtomTest]
609 AtomTest ex(m_field);
610 CHKERR ex.runProblem();
611 //! [AtomTest]
612 }
614
616}
static char help[]
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
#define CHKERR
Inline error check.
Definition: definitions.h:548
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:59
CoreTmp< 0 > Core
Definition: Core.hpp:1096
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1965
Core (interface) class.
Definition: Core.hpp:92
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:85
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:125
Deprecated interface functions.

Variable Documentation

◆ domainChildLhs

boost::shared_ptr<DomainEle> domainChildLhs

[Set up problem]

Examples
child_and_parent.cpp.

Definition at line 301 of file child_and_parent.cpp.

◆ domainChildRhs

boost::shared_ptr<DomainEle> domainChildRhs
Examples
child_and_parent.cpp.

Definition at line 301 of file child_and_parent.cpp.

◆ FIELD_DIM

constexpr int FIELD_DIM = 1
constexpr
Examples
child_and_parent.cpp.

Definition at line 29 of file child_and_parent.cpp.

◆ FIELD_NAME

constexpr char FIELD_NAME[] = "U"
constexpr
Examples
child_and_parent.cpp.

Definition at line 28 of file child_and_parent.cpp.

◆ help

char help[] = "...\n\n"
static
Examples
child_and_parent.cpp.

Definition at line 26 of file child_and_parent.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr