v0.14.0
Loading...
Searching...
No Matches
poisson_2d_lagrange_multiplier.cpp File Reference
#include <stdlib.h>
#include <MoFEM.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 301 of file poisson_2d_lagrange_multiplier.cpp.

301 {
302
303 // Initialisation of MoFEM/PETSc and MOAB data structures
304 const char param_file[] = "param_file.petsc";
305 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
306
307 // Error handling
308 try {
309 // Register MoFEM discrete manager in PETSc
310 DMType dm_name = "DMMOFEM";
311 CHKERR DMRegister_MoFEM(dm_name);
312
313 // Create MOAB instance
314 moab::Core mb_instance; // mesh database
315 moab::Interface &moab = mb_instance; // mesh database interface
316
317 // Create MoFEM instance
318 MoFEM::Core core(moab); // finite element database
319 MoFEM::Interface &m_field = core; // finite element interface
320
321 // Run the main analysis
322 Poisson2DLagrangeMultiplier poisson_problem(m_field);
323 CHKERR poisson_problem.runProgram();
324 }
326
327 // Finish work: cleaning memory, getting statistics, etc.
329
330 return 0;
331}
#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 14 of file poisson_2d_lagrange_multiplier.cpp.