v0.14.0
Classes | Typedefs | Functions | Variables
plot_base.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  MyPostProc
 
struct  Example
 [Example] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 

Functions

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

Variables

static char help [] = "...\n\n"
 
constexpr int SPACE_DIM
 

Typedef Documentation

◆ DomainEle

Definition at line 30 of file plot_base.cpp.

◆ DomainEleOp

Definition at line 31 of file plot_base.cpp.

◆ EntData

Examples
plot_base.cpp.

Definition at line 29 of file plot_base.cpp.

◆ PostProcEle

Examples
plot_base.cpp.

Definition at line 32 of file plot_base.cpp.

Function Documentation

◆ main()

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

[Check results]

[Register MoFEM discrete manager in PETSc]

[Register MoFEM discrete manager in PETSc

[Create MoAB]

< mesh database

< mesh database interface

[Create MoAB]

[Create MoFEM]

< finite element database

< finite element database insterface

[Create MoFEM]

[Example]

[Example]

Examples
plot_base.cpp.

Definition at line 386 of file plot_base.cpp.

386  {
387 
388  // Initialisation of MoFEM/PETSc and MOAB data structures
389  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
390 
391  try {
392 
393  //! [Register MoFEM discrete manager in PETSc]
394  DMType dm_name = "DMMOFEM";
395  CHKERR DMRegister_MoFEM(dm_name);
396  //! [Register MoFEM discrete manager in PETSc
397 
398  // Add logging channel for example
399  auto core_log = logging::core::get();
400  core_log->add_sink(
401  LogManager::createSink(LogManager::getStrmWorld(), "PLOTBASE"));
402  LogManager::setLog("PLOTBASE");
403  MOFEM_LOG_TAG("PLOTBASE", "plotbase");
404 
405  //! [Create MoAB]
406  moab::Core mb_instance; ///< mesh database
407  moab::Interface &moab = mb_instance; ///< mesh database interface
408  //! [Create MoAB]
409 
410  //! [Create MoFEM]
411  MoFEM::Core core(moab); ///< finite element database
412  MoFEM::Interface &m_field = core; ///< finite element database insterface
413  //! [Create MoFEM]
414 
415  //! [Example]
416  Example ex(m_field);
417  CHKERR ex.runProblem();
418  //! [Example]
419  }
420  CATCH_ERRORS;
421 
423 
424  return 0;
425 }

Variable Documentation

◆ help

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

Definition at line 12 of file plot_base.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:
Examples
plot_base.cpp.

Definition at line 26 of file plot_base.cpp.

help
static char help[]
Definition: plot_base.cpp:12
EXECUTABLE_DIMENSION
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:13
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2010
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
Example
[Example]
Definition: plastic.cpp:177
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148