v0.16.0
Loading...
Searching...
No Matches
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]
 

Variables

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

Typedef Documentation

◆ PostProcFaceEle

Definition at line 7 of file poisson_2d_nonhomogeneous.cpp.

Function Documentation

◆ main()

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

[Run program]

Definition at line 375 of file poisson_2d_nonhomogeneous.cpp.

375 {
376
377 // Initialisation of MoFEM/PETSc and MOAB data structures
378 const char param_file[] = "param_file.petsc";
379 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
380
381 // Error handling
382 try {
383 // Register MoFEM discrete manager in PETSc
384 DMType dm_name = "DMMOFEM";
385 CHKERR DMRegister_MoFEM(dm_name);
386
387 // Create MOAB instance
388 moab::Core mb_instance; // mesh database
389 moab::Interface &moab = mb_instance; // mesh database interface
390
391 // Create MoFEM instance
392 MoFEM::Core core(moab); // finite element database
393 MoFEM::Interface &m_field = core; // finite element interface
394
395 // Run the main analysis
396 Poisson2DNonhomogeneous poisson_problem(m_field);
397 CHKERR poisson_problem.runProgram();
398 }
400
401 // Finish work: cleaning memory, getting statistics, etc.
403
404 return 0;
405}
#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:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
Deprecated interface functions.

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.