v0.14.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
poisson_2d_lagrange_multiplier.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>
#include <poisson_2d_lagrange_multiplier.hpp>

Go to the source code of this file.

Classes

struct  Poisson2DLagrangeMultiplier
 

Typedefs

using PostProcFaceEle
 
using PostProcEdgeEle
 

Functions

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

Variables

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

Typedef Documentation

◆ PostProcEdgeEle

◆ PostProcFaceEle

Function Documentation

◆ main()

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

Definition at line 300 of file poisson_2d_lagrange_multiplier.cpp.

300 {
301
302 // Initialisation of MoFEM/PETSc and MOAB data structures
303 const char param_file[] = "param_file.petsc";
305
306 // Error handling
307 try {
308 // Register MoFEM discrete manager in PETSc
309 DMType dm_name = "DMMOFEM";
310 CHKERR DMRegister_MoFEM(dm_name);
311
312 // Create MOAB instance
313 moab::Core mb_instance; // mesh database
314 moab::Interface &moab = mb_instance; // mesh database interface
315
316 // Create MoFEM instance
317 MoFEM::Core core(moab); // finite element database
318 MoFEM::Interface &m_field = core; // finite element interface
319
320 // Run the main analysis
321 Poisson2DLagrangeMultiplier poisson_problem(m_field);
322 CHKERR poisson_problem.runProgram();
323 }
325
326 // Finish work: cleaning memory, getting statistics, etc.
328
329 return 0;
330}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:47
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 13 of file poisson_2d_lagrange_multiplier.cpp.