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

Go to the source code of this file.

Classes

struct  Poisson
 

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 210 of file poisson_prob.cpp.

210 {
211 const char param_file[] = "param_file.petsc";
213 try {
214 moab::Core mb_instance;
215 moab::Interface &moab = mb_instance;
216 MoFEM::Core core(moab);
217 DMType dm_name = "DMMOFEM";
218 CHKERR DMRegister_MoFEM(dm_name);
219
220 int order = 1;
221 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
222
223 Poisson poisson_problem(mb_instance, core, order);
224
225 CHKERR poisson_problem.runAnalysis();
226 }
229 return 0;
230}
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
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
static char help[]
Definition: poisson_prob.cpp:8
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

Variable Documentation

◆ help

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

Definition at line 8 of file poisson_prob.cpp.