v0.14.0
Loading...
Searching...
No Matches
Classes | Functions | Variables
unsaturate_flow.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>
#include <UnsaturatedFlowOperators.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 428 of file unsaturate_flow.cpp.

428 {
429 const char param_file[] = "param_file.petsc";
431 try {
432 moab::Core mb_instance;
433 moab::Interface &moab = mb_instance;
434 MoFEM::Core core(moab);
435 DMType dm_name = "DMMOFEM";
436 CHKERR DMRegister_MoFEM(dm_name);
437
438 int order = 1;
439 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
440 int nb_species = 1;
441 UFProblem unsatu_flow_problem(mb_instance, core, order, nb_species);
442 CHKERR unsatu_flow_problem.run_analysis();
443 }
446 return 0;
447}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
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
static char help[]

Variable Documentation

◆ help

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

Definition at line 8 of file unsaturate_flow.cpp.