v0.14.0
Loading...
Searching...
No Matches
poisson_2d_nonhomogeneous.cpp File Reference

Go to the source code of this file.

Classes

struct  Poisson2DNonhomogeneous
 

Typedefs

using PostProcFaceEle
 

Functions

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

Variables

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

Typedef Documentation

◆ PostProcFaceEle

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 }
404
405 // Finish work: cleaning memory, getting statistics, etc.
407
408 return 0;
409}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
static char help[]
Core (interface) class.
Definition Core.hpp:82
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
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:112
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 9 of file poisson_2d_nonhomogeneous.cpp.

◆ SPACE_DIM

int SPACE_DIM = 2
constexpr

Definition at line 6 of file poisson_2d_nonhomogeneous.cpp.