457 {
458
459
460 const char param_file[] = "param_file.petsc";
462
463
464 auto core_log = logging::core::get();
465 core_log->add_sink(
469
470
471 try {
472
473 DMType dm_name = "DMMOFEM";
475
476
477 moab::Core mb_instance;
478 moab::Interface &moab = mb_instance;
479
480
483
484
486 CHKERR minimal_surface_problem.runProgram();
487 }
489
490
492
493 return 0;
494}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.