v0.14.0
Classes | Typedefs | Functions | Variables
poisson_2d_nonhomogeneous.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>
#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[])
 

Variables

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

Typedef Documentation

◆ PostProcFaceEle

Definition at line 10 of file poisson_2d_nonhomogeneous.cpp.

Function Documentation

◆ main()

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

Definition at line 274 of file poisson_2d_nonhomogeneous.cpp.

274  {
275 
276  // Initialisation of MoFEM/PETSc and MOAB data structures
277  const char param_file[] = "param_file.petsc";
278  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
279 
280  // Error handling
281  try {
282  // Register MoFEM discrete manager in PETSc
283  DMType dm_name = "DMMOFEM";
284  CHKERR DMRegister_MoFEM(dm_name);
285 
286  // Create MOAB instance
287  moab::Core mb_instance; // mesh database
288  moab::Interface &moab = mb_instance; // mesh database interface
289 
290  // Create MoFEM instance
291  MoFEM::Core core(moab); // finite element database
292  MoFEM::Interface &m_field = core; // finite element interface
293 
294  // Run the main analysis
295  Poisson2DNonhomogeneous poisson_problem(m_field);
296  CHKERR poisson_problem.runProgram();
297  }
298  CATCH_ERRORS;
299 
300  // Finish work: cleaning memory, getting statistics, etc.
302 
303  return 0;
304 }

Variable Documentation

◆ help

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

Definition at line 11 of file poisson_2d_nonhomogeneous.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr

Definition at line 8 of file poisson_2d_nonhomogeneous.cpp.

MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
Poisson2DNonhomogeneous
Definition: poisson_2d_nonhomogeneous.cpp:12
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:2002
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:1140
help
static char help[]
Definition: poisson_2d_nonhomogeneous.cpp:11