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

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 
struct  Example::CommonData
 [Example] More...
 
struct  Example::OpZero
 [Common data] More...
 
struct  Example::OpFirst
 
struct  Example::OpSecond
 [Operator] More...
 

Typedefs

using Element = MoFEM::VolumeElementForcesAndSourcesCore
 
using OpElement = Element::UserDataOperator
 
using EntData = EntitiesFieldData::EntData
 

Functions

int main (int argc, char *argv[])
 [Test example] More...
 

Variables

static char help [] = "...\n\n"
 

Typedef Documentation

◆ Element

Definition at line 32 of file integration.cpp.

◆ EntData

Definition at line 34 of file integration.cpp.

◆ OpElement

Definition at line 33 of file integration.cpp.

Function Documentation

◆ main()

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

[Test example]

[main]

Definition at line 310 of file integration.cpp.

310 {
311
312 // Initialisation of MoFEM/PETSc and MOAB data structures
313 const char param_file[] = "param_file.petsc";
315
316 // Error handling
317 try {
318
319 //! [Register MoFEM discrete manager in PETSc]
320 DMType dm_name = "DMMOFEM";
321 CHKERR DMRegister_MoFEM(dm_name);
322 //! [Register MoFEM discrete manager in PETSc]
323
324 //! [Create MoAB]
325 moab::Core mb_instance; ///< mesh database
326 moab::Interface &moab = mb_instance; ///< mesh database interface
327 //! [Create MoAB]
328
329 //! [Create MoFEM]
330 MoFEM::Core core(moab); ///< finite element database
331 MoFEM::Interface &m_field = core; ///< finite element database interface
332 //! [Create MoFEM]
333
334 Example ex(m_field);
335 CHKERR ex.runProblem();
336 }
338
340}
std::string param_file
#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
static char help[]
Definition: integration.cpp:30
CoreTmp< 0 > Core
Definition: Core.hpp:1096
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1965
[Example]
Definition: plastic.cpp:130
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

◆ help

char help[] = "...\n\n"
static

Definition at line 30 of file integration.cpp.