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

Go to the source code of this file.

Classes

struct  UFProblem< dim >
 

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 470 of file unsatu2dFlow_prob.cpp.

470 {
471 const char param_file[] = "param_file.petsc";
473 try {
474 moab::Core mb_instance;
475 moab::Interface &moab = mb_instance;
476 MoFEM::Core core(moab);
477 DMType dm_name = "DMMOFEM";
478 CHKERR DMRegister_MoFEM(dm_name);
479
480
481 int order = 1;
482 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
483 int nb_species = 1;
484 UFProblem<2> unsatu_flow_problem(mb_instance, core, order, nb_species);
485 CHKERR unsatu_flow_problem.run_analysis();
486 }
489 return 0;
490 }
std::string param_file
static char help[]
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
constexpr int order
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)
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 unsatu2dFlow_prob.cpp.