v0.14.0
Classes | Typedefs | Functions | Variables
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 = PostProcBrokenMeshInMoab< FaceElementForcesAndSourcesCore >
 
using PostProcEdgeEle = PostProcBrokenMeshInMoab< EdgeElementForcesAndSourcesCore >
 

Functions

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

Variables

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

Typedef Documentation

◆ PostProcEdgeEle

Definition at line 12 of file poisson_2d_lagrange_multiplier.cpp.

◆ PostProcFaceEle

Definition at line 10 of file poisson_2d_lagrange_multiplier.cpp.

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  }
325  CATCH_ERRORS;
326 
327  // Finish work: cleaning memory, getting statistics, etc.
329 
330  return 0;
331 }

Variable Documentation

◆ help

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

Definition at line 14 of file poisson_2d_lagrange_multiplier.cpp.

MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
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:2010
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
help
static char help[]
Definition: poisson_2d_lagrange_multiplier.cpp:14
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
Poisson2DLagrangeMultiplier
Definition: poisson_2d_lagrange_multiplier.cpp:16
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148