v0.14.0
Classes | Typedefs | Functions | Variables
poisson_2d_nonhomogeneous.cpp File Reference
#include <poisson_2d_nonhomogeneous.hpp>

Go to the source code of this file.

Classes

struct  Poisson2DNonhomogeneous
 

Typedefs

using PostProcFaceEle = PostProcBrokenMeshInMoab< FaceElementForcesAndSourcesCore >
 

Functions

int main (int argc, char *argv[])
 [Run program] More...
 

Variables

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

Typedef Documentation

◆ PostProcFaceEle

Definition at line 8 of file poisson_2d_nonhomogeneous.cpp.

Function Documentation

◆ main()

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

[Run program]

Definition at line 379 of file poisson_2d_nonhomogeneous.cpp.

379  {
380 
381  // Initialisation of MoFEM/PETSc and MOAB data structures
382  const char param_file[] = "param_file.petsc";
383  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
384 
385  // Error handling
386  try {
387  // Register MoFEM discrete manager in PETSc
388  DMType dm_name = "DMMOFEM";
389  CHKERR DMRegister_MoFEM(dm_name);
390 
391  // Create MOAB instance
392  moab::Core mb_instance; // mesh database
393  moab::Interface &moab = mb_instance; // mesh database interface
394 
395  // Create MoFEM instance
396  MoFEM::Core core(moab); // finite element database
397  MoFEM::Interface &m_field = core; // finite element interface
398 
399  // Run the main analysis
400  Poisson2DNonhomogeneous poisson_problem(m_field);
401  CHKERR poisson_problem.runProgram();
402  }
403  CATCH_ERRORS;
404 
405  // Finish work: cleaning memory, getting statistics, etc.
407 
408  return 0;
409 }

Variable Documentation

◆ help

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

Definition at line 9 of file poisson_2d_nonhomogeneous.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr

Definition at line 6 of file poisson_2d_nonhomogeneous.cpp.

MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
Poisson2DNonhomogeneous
Definition: poisson_2d_nonhomogeneous.cpp:10
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
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
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
help
static char help[]
Definition: poisson_2d_nonhomogeneous.cpp:9