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

Go to the source code of this file.

Classes

struct  NonlinearPoisson
 

Functions

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

Variables

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

Function Documentation

◆ main()

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

Definition at line 389 of file nonlinear_poisson_2d.cpp.

389 {
390
391 // Initialisation of MoFEM/PETSc and MOAB data structures
392 const char param_file[] = "param_file.petsc";
394
395 // Error handling
396 try {
397 // Register MoFEM discrete manager in PETSc
398 DMType dm_name = "DMMOFEM";
399 CHKERR DMRegister_MoFEM(dm_name);
400
401 // Create MOAB instance
402 moab::Core mb_instance; // mesh database
403 moab::Interface &moab = mb_instance; // mesh database interface
404
405 // Create MoFEM instance
406 MoFEM::Core core(moab); // finite element database
407 MoFEM::Interface &m_field = core; // finite element interface
408
409 // Run the main analysis
410 NonlinearPoisson poisson_problem(m_field);
411 CHKERR poisson_problem.runProgram();
412 }
414
415 // Finish work: cleaning memory, getting statistics, etc.
417
418 return 0;
419}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
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 8 of file nonlinear_poisson_2d.cpp.